Skip to content

Commit

Permalink
Merge pull request #4263 from osmandapp/rzr-fix-gpx-no-general
Browse files Browse the repository at this point in the history
Fix weird staight lines (tracksWithoutGeneralTrack) for Issue #4249
  • Loading branch information
alex-osm authored Dec 30, 2024
2 parents 054287c + aa6bdd3 commit 8f7ddcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Controllers/Map/Layers/OAGPXLayer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -482,12 +482,12 @@ - (void) refreshGpxTracks
NSMutableArray *elevations = [NSMutableArray array];
QList<OsmAnd::FColorARGB> segmentColors;
QList<OsmAnd::FColorARGB> segmentWallColors;
NSArray<OASTrack *> *tracks = [gpxFile getTracksIncludeGeneralTrack:NO];
NSArray<OASTrack *> *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)
{
Expand Down

0 comments on commit 8f7ddcd

Please sign in to comment.