Changeset 2541 in josm for trunk/src/org


Ignore:
Timestamp:
2009-11-28T22:46:30+01:00 (14 years ago)
Author:
stoecker
Message:

fixed #2539 - redone last fix a bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/UndoRedoHandler.java

    r2539 r2541  
    2525    public final LinkedList<Command> commands = new LinkedList<Command>();
    2626    /**
    27      * Selection to be restored on undo
    28      */
    29     public Collection<? extends OsmPrimitive> lastSelection = new ArrayList<OsmPrimitive>();
    30     /**
    3127     * The stack for redoing commands
    3228     */
     
    4339     */
    4440    public void addNoRedraw(final Command c) {
    45         lastSelection = Main.main.getCurrentDataSet().getSelected();
    4641        c.executeCommand();
    4742        commands.add(c);
     
    7267     */
    7368    public void undo() {
     69        Collection<? extends OsmPrimitive> lastSelection = Main.main.getCurrentDataSet().getSelected();
    7470        if (commands.isEmpty())
    7571            return;
Note: See TracChangeset for help on using the changeset viewer.