This commit is contained in:
Vitaliy 2020-09-11 17:51:36 +03:00
parent e90a7127ad
commit a4098fb234

View file

@ -743,7 +743,7 @@ public class MeasurementEditingContext {
locations.add(l);
}
pair.second.setTrkPtIndex(locations.size() - 1);
if (i < size - 2) {
if (i < size - 2 && !locations.isEmpty()) {
locations.remove(locations.size() - 1);
}
route.addAll(data.segments);