[Kst] branches/work/kst/portto4/kst/src/datasources/ascii
Peter Kümmel
syntheticpp at gmx.net
Thu Oct 25 15:43:51 UTC 2012
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;
}
More information about the Kst
mailing list