Ticket #7164: 0001-Followline-didn-t-stop-when-the-way-became-closed.patch

File 0001-Followline-didn-t-stop-when-the-way-became-closed.patch, 1.0 KB (added by ij, 13 years ago)

0001-Followline-didn-t-stop-when-the-way-became-closed.patch

  • src/org/openstreetmap/josm/actions/FollowLineAction.java

    From f9572a327a06055ea4fef9a8ed31e0b46bbce68e Mon Sep 17 00:00:00 2001
    From: =?utf-8?q?Ilpo=20J=C3=A4rvinen?= <ilpo.jarvinen@helsinki.fi>
    Date: Sat, 17 Dec 2011 23:59:38 +0200
    Subject: [PATCH 1/2] Followline didn't stop when the way became closed
    
    ---
     .../josm/actions/FollowLineAction.java             |    2 ++
     1 files changed, 2 insertions(+), 0 deletions(-)
    
    diff --git a/src/org/openstreetmap/josm/actions/FollowLineAction.java b/src/org/openstreetmap/josm/actions/FollowLineAction.java
    index cb5378e..58fe454 100644
    a b public class FollowLineAction extends JosmAction {  
    7171        if (last == null)
    7272            return;
    7373        Way follower = selectedLines.iterator().next();
     74        if (follower.isClosed())    /* Don't loop until OOM */
     75            return;
    7476        Node prev = follower.getNode(1);
    7577        boolean reversed = true;
    7678        if (follower.lastNode().equals(last)) {