Changeset 19411 in josm


Ignore:
Timestamp:
2025-05-28T06:22:34+02:00 (6 weeks ago)
Author:
GerdP
Message:

fix #24255: Clicking undo on two error messages reverts change and previous change

  • don't show popup for move of multiple nodes when the popup fpr long-distance move already was answered with Cancel so that the move was undone.
File:
1 edited

Legend:

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

    r19315 r19411  
    885885        SelectAction.checkCommandForLargeDistance(lastCommand);
    886886
     887        // check if move was cancelled
     888        if (UndoRedoHandler.getInstance().getLastCommand() != lastCommand)
     889            return;
     890
    887891        final int moveCount = lastCommand.getParticipatingPrimitives().size();
    888892        final int max = Config.getPref().getInt("warn.move.maxelements", 20);
Note: See TracChangeset for help on using the changeset viewer.