From b1e46bdc26baa412772c115da682d57fa48dd4f3 Mon Sep 17 00:00:00 2001 From: Carsten Niehaus Date: Thu, 14 Jul 2005 11:35:30 +0000 Subject: [PATCH] oops, wrong variablename svn path=/trunk/KDE/kdeedu/kalzium/src/spectrum.h; revision=434501 --- kalzium/src/spectrum.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kalzium/src/spectrum.h b/kalzium/src/spectrum.h index 389a5a2..3cd7427 100644 --- a/kalzium/src/spectrum.h +++ b/kalzium/src/spectrum.h @@ -152,7 +152,7 @@ class SpectrumWidget : public QWidget * @param wavelength the wavelength for which the position is needed */ inline int xPos( double wavelength ){ - return ( int ) ( width() * ( value - startValue ) / ( endValue - startValue ) ); + return ( int ) ( width() * ( wavelength - startValue ) / ( endValue - startValue ) ); } /** -- 2.47.3