Changeset 15875 in josm


Ignore:
Timestamp:
2020-02-17T15:17:10+01:00 (3 months ago)
Author:
GerdP
Message:

see #18728: Join overlapping Areas is slow when combining many complex ways

  • use UndoRedoHandler.undo(int num) instead of calling UndoRedoHandler.undo()num times
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java

    r15873 r15875  
    651651            if (!toRemove.isEmpty()) {
    652652                cmds.add(new DeleteCommand(toRemove));
    653                 commitCommands("Removed  nodes");
     653                commitCommands(marktr("Removed now unreferrenced nodes"));
    654654            }
    655655        }
     
    16491649                cmds.add(commands.get(i));
    16501650            }
    1651 
    1652             for (i = 0; i < cmds.size(); i++) {
    1653                 ur.undo();
    1654             }
     1651            ur.undo(cmds.size());
    16551652        }
    16561653
Note: See TracChangeset for help on using the changeset viewer.