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/DeleteChosenRelationAction.java

    r25711 r28813  
    33import static org.openstreetmap.josm.tools.I18n.tr;
    44import java.awt.event.ActionEvent;
     5import java.util.Collections;
    56import javax.swing.AbstractAction;
    67import org.openstreetmap.josm.Main;
     8import org.openstreetmap.josm.command.Command;
    79import org.openstreetmap.josm.command.DeleteCommand;
    810import org.openstreetmap.josm.data.osm.Relation;
     
    2527        Relation r = rel.get();
    2628        rel.clear();
    27         Main.main.undoRedo.add(new DeleteCommand(r));
     29        Command c = DeleteCommand.delete(Main.main.getEditLayer(), Collections.singleton(r), true, true);
     30        if( c != null )
     31            Main.main.undoRedo.add(c);
    2832    }
    2933
Note: See TracChangeset for help on using the changeset viewer.