Changeset 2541 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-11-28T22:46:30+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/UndoRedoHandler.java
r2539 r2541 25 25 public final LinkedList<Command> commands = new LinkedList<Command>(); 26 26 /** 27 * Selection to be restored on undo28 */29 public Collection<? extends OsmPrimitive> lastSelection = new ArrayList<OsmPrimitive>();30 /**31 27 * The stack for redoing commands 32 28 */ … … 43 39 */ 44 40 public void addNoRedraw(final Command c) { 45 lastSelection = Main.main.getCurrentDataSet().getSelected();46 41 c.executeCommand(); 47 42 commands.add(c); … … 72 67 */ 73 68 public void undo() { 69 Collection<? extends OsmPrimitive> lastSelection = Main.main.getCurrentDataSet().getSelected(); 74 70 if (commands.isEmpty()) 75 71 return;
Note:
See TracChangeset
for help on using the changeset viewer.