This commit is contained in:
PavelRatushny 2017-10-02 13:00:15 +03:00
parent 5deebe2d8a
commit f426348a43

View file

@ -1012,7 +1012,6 @@ public class GPXUtilities {
}
private void removeGeneralTrackIfExists() {
Track generalTrack = getGeneralTrack();
if (generalTrack != null) {
tracks.remove(generalTrack);
this.generalTrack = null;
@ -1163,6 +1162,7 @@ public class GPXUtilities {
}
public static String writeGpxFile(File fout, GPXFile file, OsmandApplication ctx) {
file.removeGeneralTrackIfExists();
Writer output = null;
try {
output = new OutputStreamWriter(new FileOutputStream(fout), "UTF-8"); //$NON-NLS-1$