Fix refreshing map when undo/redo move point

This commit is contained in:
PavelRatushny 2017-08-10 10:48:52 +03:00
parent a0d41d945f
commit 66bbd34644

View file

@ -35,10 +35,12 @@ public class MovePointCommand implements Command {
private void replacePointWithOldOne() {
measurementLayer.getMeasurementPoints().remove(position);
measurementLayer.getMeasurementPoints().add(position, oldPoint);
measurementLayer.refreshMap();
}
private void replacePointWithNewOne() {
measurementLayer.getMeasurementPoints().remove(position);
measurementLayer.getMeasurementPoints().add(position, newPoint);
measurementLayer.refreshMap();
}
}