1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +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);
if (data.isEmpty())
return;
continue;
min = max = data.at(0).y();

View File

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