Fix clear all
This commit is contained in:
parent
c21290e583
commit
9025771718
1 changed files with 9 additions and 3 deletions
|
@ -179,9 +179,15 @@ public class MeasurementEditingContext {
|
||||||
public void clearSegments() {
|
public void clearSegments() {
|
||||||
before.points.clear();
|
before.points.clear();
|
||||||
after.points.clear();
|
after.points.clear();
|
||||||
beforeCacheForSnap = null;
|
if (inSnapToRoadMode) {
|
||||||
afterCacheForSnap = null;
|
beforeCacheForSnap.points.clear();
|
||||||
needUpdateCacheForSnap = false;
|
afterCacheForSnap.points.clear();
|
||||||
|
needUpdateCacheForSnap = true;
|
||||||
|
} else {
|
||||||
|
beforeCacheForSnap = null;
|
||||||
|
afterCacheForSnap = null;
|
||||||
|
needUpdateCacheForSnap = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void scheduleRouteCalculateIfNotEmpty() {
|
void scheduleRouteCalculateIfNotEmpty() {
|
||||||
|
|
Loading…
Reference in a new issue