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:
parent
e52a163529
commit
4cba2ddefd
@ -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();
|
||||||
|
|
||||||
|
@ -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()));
|
||||||
|
Loading…
Reference in New Issue
Block a user