Changeset 16220 in josm for trunk/src/org


Ignore:
Timestamp:
2020-03-30T07:18:28+02:00 (5 years ago)
Author:
GerdP
Message:

fix #19003: different validator results with layer state "locked"

  • replace getEditDataSet() by getActiveDataSet()
Location:
trunk/src/org/openstreetmap/josm/data/validation/tests
Files:
2 edited

Legend:

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

    r15519 r16220  
    237237        mindist = Config.getPref().getDouble(PREFIX + ".node_way_distance", 10.0);
    238238        minmiddledist = Config.getPref().getDouble(PREFIX + ".way_way_distance", 0.0);
    239         ds = OsmDataManager.getInstance().getEditDataSet();
     239        ds = OsmDataManager.getInstance().getActiveDataSet();
    240240        dsArea = ds == null ? null : ds.getDataSourceArea();
    241241    }
  • trunk/src/org/openstreetmap/josm/data/validation/tests/UntaggedWay.java

    r16119 r16220  
    142142    public void startTest(ProgressMonitor monitor) {
    143143        super.startTest(monitor);
    144         DataSet ds = OsmDataManager.getInstance().getEditDataSet();
     144        DataSet ds = OsmDataManager.getInstance().getActiveDataSet();
    145145        if (ds == null)
    146146            return;
     
    182182    @Override
    183183    public boolean isPrimitiveUsable(OsmPrimitive p) {
    184         return p.isUsable();
     184        return p instanceof Way;
    185185    }
    186186}
Note: See TracChangeset for help on using the changeset viewer.