Fix processing points after saving

This commit is contained in:
PavelRatushny 2017-08-09 18:37:30 +03:00
parent ccccf81330
commit aa35e2cb1a

View file

@ -576,7 +576,9 @@ public class MeasurementToolFragment extends Fragment {
}
if (showOnMap) {
SelectedGpxFile sf = activity.getMyApplication().getSelectedGpxHelper().selectGpxFile(gpx, true, false);
sf.processPoints();
if (newGpxLine != null && sf != null) {
sf.processPoints();
}
}
return res;
}