Changeset 19172 in josm for trunk/src/org
- Timestamp:
- 2024-08-07T16:34:44+02:00 (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
r19170 r19172 417 417 } else if (i instanceof CheckGroup) { 418 418 for (Check c : ((CheckGroup) i).checks) { 419 if (!"none".equals(c.match)) 420 minData.add(c); 419 421 addPresetValue(c); 420 422 } … … 422 424 } 423 425 if (!minData.isEmpty()) { 424 presetIndex 426 presetIndex.put(p, minData); 425 427 } 426 428 } … … 855 857 private static boolean primitiveInRegions(IPrimitive primitive, Collection<String> regions, boolean excludeRegions) { 856 858 if (primitive instanceof INode) { 857 return latLonInRegions((INode) primitive, regions) == excludeRegions; 859 // 4 options: 860 // In Region | excluding region | expected 861 // true | false | true 862 // true | true | false 863 // false | false | false 864 // false | true | true 865 return latLonInRegions((INode) primitive, regions) != excludeRegions; 858 866 } else if (primitive instanceof IWay) { 859 867 return ((IWay<?>) primitive).getNodes().stream().anyMatch(n -> primitiveInRegions(n, regions, excludeRegions));
Note:
See TracChangeset
for help on using the changeset viewer.