From f814d1f5a365695a9be21a076613bbd716bf53d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 1 Apr 2024 13:30:50 +0200 Subject: [PATCH] Use the water temperature as temperature data when no air temperature is present --- src/data/gpxparser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/data/gpxparser.cpp b/src/data/gpxparser.cpp index d0f48696..e5da5bf3 100644 --- a/src/data/gpxparser.cpp +++ b/src/data/gpxparser.cpp @@ -76,6 +76,9 @@ void GPXParser::tpExtension(Trackpoint &trackpoint) trackpoint.setHeartRate(number()); else if (_reader.name() == QLatin1String("atemp")) trackpoint.setTemperature(number()); + else if (_reader.name() == QLatin1String("wtemp") + && !trackpoint.hasTemperature()) + trackpoint.setTemperature(number()); else if (_reader.name() == QLatin1String("cad")) trackpoint.setCadence(number()); else if (_reader.name() == QLatin1String("speed"))