Changeset 12351 in josm


Ignore:
Timestamp:
2017-06-09T00:04:28+02:00 (6 months ago)
Author:
michael2402
Message:

Fix FollowLineAction selecting the wrong primitive

When using the ChangeCommand, the newly created way is discared and the original one is still in the data set.

File:
1 edited

Legend:

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

    r12182 r12351  
    115115                    new ChangeCommand(follower, newFollower),
    116116                    new SelectCommand(newFollower.isClosed() // see #10028 - unselect last node when closing a way
    117                             ? Arrays.<OsmPrimitive>asList(newFollower)
    118                             : Arrays.<OsmPrimitive>asList(newFollower, newPoint)
     117                            ? Arrays.<OsmPrimitive>asList(follower)
     118                            : Arrays.<OsmPrimitive>asList(follower, newPoint)
    119119                    ))
    120120            );
Note: See TracChangeset for help on using the changeset viewer.