This commit is contained in:
Chumva 2019-06-25 13:37:31 +03:00
parent ee7882fa96
commit 46a97b4def

View file

@ -18,6 +18,8 @@ public class ReorderPointCommand extends MeasurementModeCommand {
@Override @Override
public boolean execute() { public boolean execute() {
measurementLayer.getEditingCtx().setNeedUpdateCacheForSnap(true);
measurementLayer.refreshMap();
return true; return true;
} }
@ -34,6 +36,7 @@ public class ReorderPointCommand extends MeasurementModeCommand {
private void reorder(int addTo, int removeFrom) { private void reorder(int addTo, int removeFrom) {
List<WptPt> points = measurementLayer.getEditingCtx().getPoints(); List<WptPt> points = measurementLayer.getEditingCtx().getPoints();
points.add(addTo, points.remove(removeFrom)); points.add(addTo, points.remove(removeFrom));
measurementLayer.getEditingCtx().setNeedUpdateCacheForSnap(true);
measurementLayer.refreshMap(); measurementLayer.refreshMap();
} }