Changeset 4707 in josm


Ignore:
Timestamp:
Dec 24, 2011 12:26:04 AM (17 months ago)
Author:
simon04
Message:

fix #6747 - missing connection on long ways hard to find

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java

    r4310 r4707  
    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(); 
     
    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 */ 
     
    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(); 
     
    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        } 
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java

    r4672 r4707  
    55import static org.openstreetmap.josm.tools.I18n.tr; 
    66 
    7 import java.awt.GridLayout; 
    87import java.awt.event.ActionEvent; 
    98import java.awt.event.ActionListener; 
     
    1413import java.lang.reflect.InvocationTargetException; 
    1514import java.util.ArrayList; 
    16 import java.util.Arrays; 
    1715import java.util.Collection; 
    1816import java.util.Enumeration; 
     
    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    } 
Note: See TracChangeset for help on using the changeset viewer.