Changeset 15872 in josm


Ignore:
Timestamp:
2020-02-17T09:56:33+01:00 (5 years ago)
Author:
GerdP
Message:

Don't create extra SeqenceCommand for single DeleteCommand in MergeNodesAction

File:
1 edited

Legend:

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

    r15586 r15872  
    351351                cmds.add(new DeleteCommand(nodesToDelete));
    352352            }
     353            if (cmds.size() == 1)
     354                return cmds.get(0);
    353355            return cmds.isEmpty() ? null : new SequenceCommand(/* for correct i18n of plural forms - see #9110 */
    354356                    trn("Merge {0} node", "Merge {0} nodes", nodes.size(), nodes.size()), cmds);
Note: See TracChangeset for help on using the changeset viewer.