From aa6bdd3573ca21f0461ce0232bae6eeba0042910 Mon Sep 17 00:00:00 2001 From: RZR-UA Date: Mon, 30 Dec 2024 17:41:18 +0100 Subject: [PATCH] Fix trackWithoutGeneralTrack for Issue #4249 --- Sources/Controllers/Map/Layers/OAGPXLayer.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Controllers/Map/Layers/OAGPXLayer.mm b/Sources/Controllers/Map/Layers/OAGPXLayer.mm index 32721866e9..e3e7d7a6e2 100644 --- a/Sources/Controllers/Map/Layers/OAGPXLayer.mm +++ b/Sources/Controllers/Map/Layers/OAGPXLayer.mm @@ -482,12 +482,12 @@ - (void) refreshGpxTracks NSMutableArray *elevations = [NSMutableArray array]; QList segmentColors; QList segmentWallColors; - NSArray *tracks = [gpxFile getTracksIncludeGeneralTrack:NO]; + NSArray *tracksWithoutGeneralTrack = [gpxFile getTracksIncludeGeneralTrack:NO]; if ([self isSensorLineVisualizationType:dataWrapper.visualization3dByType]) { [self processGPXDataElements:gpxFile.tracks withGPX:gpx addToElevations:elevations]; } - for (OASTrack *track in gpxFile.tracks) + for (OASTrack *track in tracksWithoutGeneralTrack) { for (OASTrkSegment *seg in track.segments) {