Ignore:
Timestamp:
2015-06-03T00:06:52+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #11508 - fix bad behaviour of Move Node onto way with overlapping ways

File:
1 edited

Legend:

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

    r8378 r8447  
    140140                                                                            w.getNode(segmentIndex+1).getEastNorth(),
    141141                                                                            node.getEastNorth());
    142                         cmds.add(new MoveCommand(node, Projections.inverseProject(newPosition)));
     142                        MoveCommand c = new MoveCommand(node, Projections.inverseProject(newPosition));
     143                        // Avoid moving a given node several times at the same position in case of overlapping ways
     144                        if (!cmds.contains(c)) {
     145                            cmds.add(c);
     146                        }
    143147                    }
    144148                }
Note: See TracChangeset for help on using the changeset viewer.