Ticket #20098: 20098.patch
File 20098.patch, 941 bytes (added by , 4 years ago) |
---|
-
src/org/openstreetmap/josm/data/UndoRedoHandler.java
377 377 try { 378 378 for (int i = 1; i <= num; ++i) { 379 379 final Command c = commands.removeLast(); 380 c.undoCommand(); 380 try { 381 c.undoCommand(); 382 } catch (Exception e) { // NOPMD 383 // fix #20098: restore command stack as we will not fire an event 384 commands.add(c); 385 throw e; 386 } 381 387 redoCommands.addFirst(c); 382 388 fireEvent(new CommandUndoneEvent(this, c)); 383 389 if (commands.isEmpty()) {