Fix snap to road after changing ApplicationMode
This commit is contained in:
parent
f09fe36214
commit
0395e35999
1 changed files with 5 additions and 0 deletions
|
@ -93,6 +93,11 @@ public class MeasurementEditingContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
void setSnapToRoadAppMode(ApplicationMode snapToRoadAppMode) {
|
void setSnapToRoadAppMode(ApplicationMode snapToRoadAppMode) {
|
||||||
|
if (this.snapToRoadAppMode != null
|
||||||
|
&& !this.snapToRoadAppMode.getStringKey().equals(snapToRoadAppMode.getStringKey())) {
|
||||||
|
snappedToRoadPoints.clear();
|
||||||
|
updateCacheForSnapIfNeeded(true);
|
||||||
|
}
|
||||||
this.snapToRoadAppMode = snapToRoadAppMode;
|
this.snapToRoadAppMode = snapToRoadAppMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue