Skip to content

Commit

Permalink
Fix #1, automatically select output
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhoek committed May 28, 2018
1 parent c72bb55 commit 23d8254
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nl/jeroenhoek/josm/gridify/GridifyAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -146,6 +147,8 @@ Collection<Command> 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;
}

Expand Down

0 comments on commit 23d8254

Please sign in to comment.