Fix clear all

This commit is contained in:
Alexander Sytnyk 2017-08-28 14:34:56 +03:00
parent c21290e583
commit 9025771718

View file

@ -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() {