[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/kst/portto4/kst/src/datasources/ascii
From: Peter Kümmel <syntheticpp () gmx ! net>
Date: 2012-10-25 15:43:51
Message-ID: 20121025154351.B96DFAC854 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1322433 by kuemmel:
don't drop decimals
M +2 -2 kst_atof.cpp
--- branches/work/kst/portto4/kst/src/datasources/ascii/kst_atof.cpp #1322432:1322433
@@ -217,11 +217,11 @@
if (_timeWithDate) {
const QDateTime t = QDateTime::fromString(time, _timeFormat);
if (t.isValid())
- sec = QDateTime::fromString(time, _timeFormat).toMSecsSinceEpoch() / 1000;
+ sec = QDateTime::fromString(time, _timeFormat).toMSecsSinceEpoch() / 1000.0;
} else {
const QTime t = QTime::fromString(time, _timeFormat);
if (t.isValid())
- sec = QTime(0, 0, 0).msecsTo(t) / 1000;
+ sec = QTime(0, 0, 0).msecsTo(t) / 1000.0;
}
return sec;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic