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

List:       kde-commits
Subject:    branches/work/kst/portto4/kst/src/libkstapp
From:       Peter Kümmel <syntheticpp () gmx ! net>
Date:       2012-10-25 18:16:11
Message-ID: 20121025181611.B316AAC854 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1322448 by kuemmel:

round milli seconds not seconds

 M  +1 -1      plotaxis.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/plotaxis.cpp #1322447:1322448
@@ -185,7 +185,7 @@
   int minute = int((dDayFraction*24.0 - double(hour))*60.0);
   double second = ((dDayFraction*24.0 - double(hour))*60.0 - double(minute))*60.0;
   double fullseconds;
-  double millisec = modf(second + 0.5, &fullseconds) * 1000;
+  double millisec = modf(second + 0.0005, &fullseconds) * 1000;
 
   if (accuracy >= 0) {
     second *= pow(10.0, accuracy);
[prev in list] [next in list] [prev in thread] [next in thread] 

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