Merge pull request #8105 from jensMF/fix_8101

fix #8101
This commit is contained in:
vshcherb 2019-12-19 17:20:59 +01:00 committed by GitHub
commit 54580e1a60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -178,6 +178,8 @@ public class MeasurementEditingContext {
}
public WptPt removePoint(int position, boolean updateSnapToRoad) {
if(position < 0 || position > before.points.size())
return new WptPt();
WptPt pt = before.points.remove(position);
if (updateSnapToRoad) {
updateCacheForSnapIfNeeded(false);