1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-18 19:52:09 +01:00

Added missing GPX TrackPointExtension cadence and speed values fetching

This commit is contained in:
Martin Tůma 2019-02-17 15:32:39 +01:00
parent a2b8cec3be
commit 3d0c36b459

View File

@ -67,6 +67,10 @@ void GPXParser::tpExtension(Trackpoint &trackpoint)
trackpoint.setHeartRate(number());
else if (_reader.name() == QLatin1String("atemp"))
trackpoint.setTemperature(number());
else if (_reader.name() == QLatin1String("cad"))
trackpoint.setCadence(number());
else if (_reader.name() == QLatin1String("speed"))
trackpoint.setSpeed(number());
else
_reader.skipCurrentElement();
}