Fix #6915
This commit is contained in:
parent
ee7882fa96
commit
46a97b4def
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue