[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/ksysguard/gui/SensorDisplayLib
From:       John Tapsell <john.tapsell () kdemail ! net>
Date:       2009-10-23 6:08:48
Message-ID: 1256278128.808632.11221.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1039241 by johnflux:

Correctly scale down the minimum value in the axis text.  Doh.


 M  +1 -1      SignalPlotter.cc  


--- trunk/KDE/kdebase/workspace/ksysguard/gui/SensorDisplayLib/SignalPlotter.cc \
#1039240:1039241 @@ -892,7 +892,7 @@
         int y_coord = boundingBox.top() + (y * (boundingBox.height()-fontHeight)) \
/(mHorizontalLinesCount+1);  //Make sure it's y*h first to avoid rounding bugs  \
double value;  if(y == mHorizontalLinesCount+1)
-            value = mNiceMinValue; //sometimes using the formulas gives us a value \
very slightly off +            value = mNiceMinValue/mScaleDownBy; //sometimes using \
the formulas gives us a value very slightly off  else
             value = mNiceMaxValue/mScaleDownBy - y * stepsize;
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic