From 3d0c36b4597a6c3b432b8685c9f821c867a8729d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 17 Feb 2019 15:32:39 +0100 Subject: [PATCH] Added missing GPX TrackPointExtension cadence and speed values fetching --- src/data/gpxparser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/data/gpxparser.cpp b/src/data/gpxparser.cpp index 5c6a6324..3e29bebd 100644 --- a/src/data/gpxparser.cpp +++ b/src/data/gpxparser.cpp @@ -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(); }