Merge pull request #10853 from osmandapp/fix_general_track_after_import

Fix display information after importing gpx file
This commit is contained in:
Vitaliy 2021-02-14 21:05:19 +02:00 committed by GitHub
commit 0ababa179c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2481,6 +2481,7 @@ public class GPXUtilities {
firstSegment.routeSegments = routeSegments; firstSegment.routeSegments = routeSegments;
firstSegment.routeTypes = routeTypes; firstSegment.routeTypes = routeTypes;
} }
gpxFile.addGeneralTrack();
} catch (Exception e) { } catch (Exception e) {
gpxFile.error = e; gpxFile.error = e;
log.error("Error reading gpx", e); //$NON-NLS-1$ log.error("Error reading gpx", e); //$NON-NLS-1$