Ticket #6747: 6747.patch

File 6747.patch, 3.6 KB (added by simon04, 14 years ago)
  • src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java

    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 {  
    109109            errors.add(new TestError(this, Severity.WARNING,
    110110                    tr("Way end node near other highway"),
    111111                    UNCONNECTED_WAYS,
    112                     Arrays.asList(error.getKey(), error.getValue())));
     112                    Arrays.asList(error.getKey(), error.getValue()),
     113                    Arrays.asList(error.getKey())));
    113114        }
    114115        map.clear();
    115116        for (MyWaySegment s : ways) {
    public class UnconnectedWays extends Test {  
    127128            errors.add(new TestError(this, Severity.WARNING,
    128129                    tr("Way end node near other way"),
    129130                    UNCONNECTED_WAYS,
    130                     Arrays.asList(error.getKey(), error.getValue())));
     131                    Arrays.asList(error.getKey(), error.getValue()),
     132                    Arrays.asList(error.getKey())));
    131133        }
    132134        /* the following two use a shorter distance */
    133135        if (minmiddledist > 0.0) {
    public class UnconnectedWays extends Test {  
    148150                errors.add(new TestError(this, Severity.OTHER,
    149151                        tr("Way node near other way"),
    150152                        UNCONNECTED_WAYS,
    151                         Arrays.asList(error.getKey(), error.getValue())));
     153                        Arrays.asList(error.getKey(), error.getValue()),
     154                        Arrays.asList(error.getKey())));
    152155            }
    153156            map.clear();
    154157            for (MyWaySegment s : ways) {
    public class UnconnectedWays extends Test {  
    167170                errors.add(new TestError(this, Severity.OTHER,
    168171                        tr("Connected way end node near other way"),
    169172                        UNCONNECTED_WAYS,
    170                         Arrays.asList(error.getKey(), error.getValue())));
     173                        Arrays.asList(error.getKey(), error.getValue()),
     174                        Arrays.asList(error.getKey())));
    171175            }
    172176        }
    173177        ways = null;
  • src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java

    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;  
    44import static org.openstreetmap.josm.tools.I18n.marktr;
    55import static org.openstreetmap.josm.tools.I18n.tr;
    66
    7 import java.awt.GridLayout;
    87import java.awt.event.ActionEvent;
    98import java.awt.event.ActionListener;
    109import java.awt.event.KeyEvent;
    import java.awt.event.MouseEvent;  
    1312import java.io.IOException;
    1413import java.lang.reflect.InvocationTargetException;
    1514import java.util.ArrayList;
    16 import java.util.Arrays;
    1715import java.util.Collection;
    1816import java.util.Enumeration;
    1917import java.util.HashSet;
    public class ValidatorDialog extends ToggleDialog implements ActionListener, Sel  
    302300        popupMenuError.visitHighlighted(bbox);
    303301        if (bbox.getBounds() == null)
    304302            return;
    305         bbox.enlargeBoundingBox();
     303        bbox.enlargeBoundingBox(Main.pref.getDouble("validator.zoom-enlarge-bbox", 0.0002));
    306304        Main.map.mapView.recalculateCenterScale(bbox);
    307305    }
    308306