Ignore:
Timestamp:
2012-10-15T23:04:55+02:00 (14 years ago)
Author:
zverik
Message:

Fix #8062

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/ReconstructPolygonAction.java

    r26882 r28813  
    6464        List<Way> newSelection = new ArrayList<Way>();
    6565        List<Command> commands = new ArrayList<Command>();
    66         commands.add(new DeleteCommand(r));
     66        Command c = DeleteCommand.delete(Main.main.getEditLayer(), Collections.singleton(r), true, true);
     67        if( c == null )
     68            return;
     69        commands.add(c);
    6770       
    6871        for( JoinedPolygon p : mpc.outerWays ) {
Note: See TracChangeset for help on using the changeset viewer.