commit
d33b29a5cf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue