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 {
|
| 71 | 71 | if (last == null) |
| 72 | 72 | return; |
| 73 | 73 | Way follower = selectedLines.iterator().next(); |
| | 74 | if (follower.isClosed()) /* Don't loop until OOM */ |
| | 75 | return; |
| 74 | 76 | Node prev = follower.getNode(1); |
| 75 | 77 | boolean reversed = true; |
| 76 | 78 | if (follower.lastNode().equals(last)) { |