]> Git trees. - libqmvoc.git/commitdiff
oops, wrong variablename
authorCarsten Niehaus <cniehaus@gmx.de>
Thu, 14 Jul 2005 11:35:30 +0000 (11:35 +0000)
committerCarsten Niehaus <cniehaus@gmx.de>
Thu, 14 Jul 2005 11:35:30 +0000 (11:35 +0000)
svn path=/trunk/KDE/kdeedu/kalzium/src/spectrum.h; revision=434501

kalzium/src/spectrum.h

index 389a5a29227cf4c85c7d94fbdd97b5fc2fbab91d..3cd742747afa32b2d9b8de662b30314cfa99a7a7 100644 (file)
@@ -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 ) );
                }
 
                /**