From: Carsten Niehaus Date: Thu, 14 Jul 2005 11:35:30 +0000 (+0000) Subject: oops, wrong variablename X-Git-Tag: v3.80.2~300^2~76 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=b1e46bdc26baa412772c115da682d57fa48dd4f3;p=libqmvoc.git oops, wrong variablename svn path=/trunk/KDE/kdeedu/kalzium/src/spectrum.h; revision=434501 --- 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 ) ); } /**