Changeset 7130 in josm


Ignore:
Timestamp:
2014-05-14T23:12:33+02:00 (6 years ago)
Author:
simon04
Message:

fix #10028 - Follow line function should unselect last node when closing a way

File:
1 edited

Legend:

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

    r7122 r7130  
    115115            Main.main.undoRedo.add(new SequenceCommand(tr("Follow line"),
    116116                    new ChangeCommand(follower, newFollower),
    117                     new SelectCommand(Arrays.asList(newFollower, newPoint))));
     117                    new SelectCommand(newFollower.isClosed() // see #10028 - unselect last node when closing a way
     118                            ? Arrays.<OsmPrimitive>asList(newFollower)
     119                            : Arrays.<OsmPrimitive>asList(newFollower, newPoint)
     120                    ))
     121            );
    118122            // "viewport following" mode for tracing long features
    119123            // from aerial imagery or GPS tracks.
Note: See TracChangeset for help on using the changeset viewer.