Ignore:
Timestamp:
2010-06-21T16:26:22+02:00 (14 years ago)
Author:
petrdlouhy
Message:

fix for broken undo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/ConnectWays.java

    r19985 r21852  
    3838    public static Command connect(Way way) {
    3939        Map<Way, Way> modifiedWays = new HashMap<Way, Way>();
    40         List<Command> cmds = new LinkedList<Command>();
     40        LinkedList<Command> cmds = new LinkedList<Command>();
    4141        Way newWay = new Way(way);
    4242        for (int i = 0; i < way.getNodesCount() - 1; i++) {
     
    7878        }
    7979
    80         cmds.add(new ChangeCommand(way, trySplitWayByAnyNodes(newWay)));
     80        cmds.addFirst(new ChangeCommand(way, trySplitWayByAnyNodes(newWay)));
    8181
    8282        Command cmd = new SequenceCommand(tr("Merge objects nodes"), cmds);
Note: See TracChangeset for help on using the changeset viewer.