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() {
before.points.clear();
after.points.clear();
beforeCacheForSnap = null;
afterCacheForSnap = null;
needUpdateCacheForSnap = false;
if (inSnapToRoadMode) {
beforeCacheForSnap.points.clear();
afterCacheForSnap.points.clear();
needUpdateCacheForSnap = true;
} else {
beforeCacheForSnap = null;
afterCacheForSnap = null;
needUpdateCacheForSnap = false;
}
}
void scheduleRouteCalculateIfNotEmpty() {