Ticket #3347: speedup-main.patch
| File speedup-main.patch, 968 bytes (added by , 16 years ago) |
|---|
-
src/org/openstreetmap/josm/data/UndoRedoHandler.java
35 35 /** 36 36 * Execute the command and add it to the intern command queue. 37 37 */ 38 public void add (final Command c) {38 public void addNoRedraw(final Command c) { 39 39 c.executeCommand(); 40 40 commands.add(c); 41 41 redoCommands.clear(); 42 } 43 44 public void afterAdd() { 42 45 if (Main.map != null && Main.map.mapView.getActiveLayer() instanceof OsmDataLayer) { 43 46 OsmDataLayer data = (OsmDataLayer)Main.map.mapView.getActiveLayer(); 44 47 data.fireDataChange(); … … 50 53 } 51 54 52 55 /** 56 * Execute the command and add it to the intern command queue. 57 */ 58 public void add(final Command c) { 59 addNoRedraw(c); 60 afterAdd(); 61 } 62 63 /** 53 64 * Undoes the last added command. 54 65 */ 55 66 public void undo() {
