1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Fixed broken loading of GPX files with empty tracks

This commit is contained in:
Martin Tůma 2016-03-03 09:15:15 +01:00
parent e52a163529
commit 4cba2ddefd
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ void ElevationGraph::loadGPX(const GPX &gpx)
gpx.track(i).elevationGraph(data); gpx.track(i).elevationGraph(data);
if (data.isEmpty()) if (data.isEmpty())
return; continue;
min = max = data.at(0).y(); min = max = data.at(0).y();

View File

@ -32,7 +32,7 @@ void SpeedGraph::loadGPX(const GPX &gpx)
gpx.track(i).speedGraph(data); gpx.track(i).speedGraph(data);
if (data.isEmpty()) if (data.isEmpty())
return; continue;
_avg.append(QPointF(gpx.track(i).distance(), gpx.track(i).distance() _avg.append(QPointF(gpx.track(i).distance(), gpx.track(i).distance()
/ gpx.track(i).time())); / gpx.track(i).time()));