diff --git a/src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java b/src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java
index ec4346a..cb5e899 100644
|
a
|
b
|
public class UnconnectedWays extends Test {
|
| 109 | 109 | errors.add(new TestError(this, Severity.WARNING, |
| 110 | 110 | tr("Way end node near other highway"), |
| 111 | 111 | UNCONNECTED_WAYS, |
| 112 | | Arrays.asList(error.getKey(), error.getValue()))); |
| | 112 | Arrays.asList(error.getKey(), error.getValue()), |
| | 113 | Arrays.asList(error.getKey()))); |
| 113 | 114 | } |
| 114 | 115 | map.clear(); |
| 115 | 116 | for (MyWaySegment s : ways) { |
| … |
… |
public class UnconnectedWays extends Test {
|
| 127 | 128 | errors.add(new TestError(this, Severity.WARNING, |
| 128 | 129 | tr("Way end node near other way"), |
| 129 | 130 | UNCONNECTED_WAYS, |
| 130 | | Arrays.asList(error.getKey(), error.getValue()))); |
| | 131 | Arrays.asList(error.getKey(), error.getValue()), |
| | 132 | Arrays.asList(error.getKey()))); |
| 131 | 133 | } |
| 132 | 134 | /* the following two use a shorter distance */ |
| 133 | 135 | if (minmiddledist > 0.0) { |
| … |
… |
public class UnconnectedWays extends Test {
|
| 148 | 150 | errors.add(new TestError(this, Severity.OTHER, |
| 149 | 151 | tr("Way node near other way"), |
| 150 | 152 | UNCONNECTED_WAYS, |
| 151 | | Arrays.asList(error.getKey(), error.getValue()))); |
| | 153 | Arrays.asList(error.getKey(), error.getValue()), |
| | 154 | Arrays.asList(error.getKey()))); |
| 152 | 155 | } |
| 153 | 156 | map.clear(); |
| 154 | 157 | for (MyWaySegment s : ways) { |
| … |
… |
public class UnconnectedWays extends Test {
|
| 167 | 170 | errors.add(new TestError(this, Severity.OTHER, |
| 168 | 171 | tr("Connected way end node near other way"), |
| 169 | 172 | UNCONNECTED_WAYS, |
| 170 | | Arrays.asList(error.getKey(), error.getValue()))); |
| | 173 | Arrays.asList(error.getKey(), error.getValue()), |
| | 174 | Arrays.asList(error.getKey()))); |
| 171 | 175 | } |
| 172 | 176 | } |
| 173 | 177 | ways = null; |
diff --git a/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java b/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
index f28608b..846410e 100644
|
a
|
b
|
package org.openstreetmap.josm.gui.dialogs;
|
| 4 | 4 | import static org.openstreetmap.josm.tools.I18n.marktr; |
| 5 | 5 | import static org.openstreetmap.josm.tools.I18n.tr; |
| 6 | 6 | |
| 7 | | import java.awt.GridLayout; |
| 8 | 7 | import java.awt.event.ActionEvent; |
| 9 | 8 | import java.awt.event.ActionListener; |
| 10 | 9 | import java.awt.event.KeyEvent; |
| … |
… |
import java.awt.event.MouseEvent;
|
| 13 | 12 | import java.io.IOException; |
| 14 | 13 | import java.lang.reflect.InvocationTargetException; |
| 15 | 14 | import java.util.ArrayList; |
| 16 | | import java.util.Arrays; |
| 17 | 15 | import java.util.Collection; |
| 18 | 16 | import java.util.Enumeration; |
| 19 | 17 | import java.util.HashSet; |
| … |
… |
public class ValidatorDialog extends ToggleDialog implements ActionListener, Sel
|
| 302 | 300 | popupMenuError.visitHighlighted(bbox); |
| 303 | 301 | if (bbox.getBounds() == null) |
| 304 | 302 | return; |
| 305 | | bbox.enlargeBoundingBox(); |
| | 303 | bbox.enlargeBoundingBox(Main.pref.getDouble("validator.zoom-enlarge-bbox", 0.0002)); |
| 306 | 304 | Main.map.mapView.recalculateCenterScale(bbox); |
| 307 | 305 | } |
| 308 | 306 | |