Ticket #24255: 24255.patch

File 24255.patch, 723 bytes (added by GerdP, 7 months ago)

check if command was already undone before performing the second check

  • src/org/openstreetmap/josm/actions/mapmode/SelectAction.java

     
    884884
    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);
    889893        if (moveCount > max) {