diff --git a/src/nl/jeroenhoek/josm/gridify/GridifyAction.java b/src/nl/jeroenhoek/josm/gridify/GridifyAction.java index ac20e05..812e27b 100644 --- a/src/nl/jeroenhoek/josm/gridify/GridifyAction.java +++ b/src/nl/jeroenhoek/josm/gridify/GridifyAction.java @@ -11,6 +11,7 @@ import org.openstreetmap.josm.command.ChangePropertyCommand; import org.openstreetmap.josm.command.Command; import org.openstreetmap.josm.command.DeleteCommand; +import org.openstreetmap.josm.command.SelectCommand; import org.openstreetmap.josm.command.SequenceCommand; import org.openstreetmap.josm.data.coor.EastNorth; import org.openstreetmap.josm.data.osm.DataSet; @@ -146,6 +147,8 @@ Collection performGridifyAction(DataSet dataSet) throws GridifyExceptio inputData.getSourceWay().ifPresent(way -> commands.add(new DeleteCommand(dataSet, way))); } + commands.add(new SelectCommand(dataSet, new ArrayList<>(ways))); + return commands; }