Changeset 96 in josm for src/org


Ignore:
Timestamp:
2006-04-23T20:54:00+02:00 (19 years ago)
Author:
imi
Message:
  • fixed exception when moving was the first action taken
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/actions/mapmode/MoveAction.java

    r94 r96  
    9595                }
    9696               
    97                 Command c = mv.editLayer().commands.getLast();
     97                Command c = !mv.editLayer().commands.isEmpty() ? mv.editLayer().commands.getLast() : null;
    9898                if (c instanceof MoveCommand && affectedNodes.equals(((MoveCommand)c).objects))
    9999                        ((MoveCommand)c).moveAgain(dx,dy);
Note: See TracChangeset for help on using the changeset viewer.