Fix TrainingPeaks.com GPS data precision

.. it wasbeing lost when uploading via PWX file format because
   the data was not being stored with enough precision.
This commit is contained in:
Mark Liversedge
2015-01-04 20:09:10 +00:00
parent 73144ae7a1
commit 26d232c171

View File

@@ -622,14 +622,14 @@ PwxFileReader::writeRideFile(Context *context, const RideFile *ride, QFile &file
// lat
if (ride->areDataPresent()->lat && point->lat > -90.0 && point->lat < 90.0) {
QDomElement lat = doc.createElement("lat");
text = doc.createTextNode(QString("%1").arg(point->lat));
text = doc.createTextNode(QString("%1").arg(point->lat, 0, 'g', 11));
lat.appendChild(text);
sample.appendChild(lat);
}
// lon
if (ride->areDataPresent()->lon && point->lon > -180.00 && point->lon < 180.00) {
QDomElement lon = doc.createElement("lon");
text = doc.createTextNode(QString("%1").arg(point->lon));
text = doc.createTextNode(QString("%1").arg(point->lon, 0, 'g', 11));
lon.appendChild(text);
sample.appendChild(lon);
}