-
Bug
-
Resolution: Done
-
P2: Important
-
5.8.0, 5.9.0 Beta 1, 5.9.0 Beta 2, 5.9.0 Beta 3
-
None
Function
bool QLocationUtils::getNmeaTime(const QByteArray &bytes, QTime *time)
from qlocationutils.cpp reads msecs in wrong way:
bool hasMsecs = false; int midLen = qMin(3, bytes.size() - dotIndex - 1); int msecs = bytes.mid(dotIndex + 1, midLen).toUInt(&hasMsecs); if (hasMsecs) tempTime = tempTime.addMSecs(msecs);
cause it can leads to wrong reading for number-strings with less than 3 digit for ms.
For example, time 182549.20 or 182549.2 will have 20 msecs or 2 msec accordingly, not the 200msec as should!
| For Gerrit Dashboard: QTBUG-60814 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 194683,3 | Fix NMEA time parsing error | 5.9 | qt/qtlocation | Status: MERGED | +2 | 0 |