Fix #8101
This commit is contained in:
parent
fd843612ba
commit
4b4d1e0e2f
1 changed files with 2 additions and 1 deletions
|
@ -178,8 +178,9 @@ public class MeasurementEditingContext {
|
|||
}
|
||||
|
||||
public WptPt removePoint(int position, boolean updateSnapToRoad) {
|
||||
if(position < 0 || position > before.points.size())
|
||||
if (position < 0 || position >= before.points.size()) {
|
||||
return new WptPt();
|
||||
}
|
||||
WptPt pt = before.points.remove(position);
|
||||
if (updateSnapToRoad) {
|
||||
updateCacheForSnapIfNeeded(false);
|
||||
|
|
Loading…
Reference in a new issue