Changeset 22805 in osm for applications/editors/josm
- Timestamp:
- 2010-08-27T09:17:34+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/RelationChecker.java
r22457 r22805 14 14 import org.openstreetmap.josm.gui.preferences.TaggingPresetPreference; 15 15 import org.openstreetmap.josm.gui.tagging.TaggingPreset; 16 import org.openstreetmap.josm.gui.tagging.TaggingPreset.PresetType; 16 17 import org.openstreetmap.josm.plugins.validator.OSMValidatorPlugin; 17 18 import org.openstreetmap.josm.plugins.validator.Severity; … … 175 176 } 176 177 } 177 if(ri != null && ((!r.types.contains( "way") && (r.types.contains("closedway") ? ri.openways > 0 : ri.ways > 0))178 || (!r.types.contains( "node") && ri.nodes > 0) || (!r.types.contains("relation") && ri.relations > 0)))178 if(ri != null && ((!r.types.contains(PresetType.WAY) && (r.types.contains(PresetType.CLOSEDWAY) ? ri.openways > 0 : ri.ways > 0)) 179 || (!r.types.contains(PresetType.NODE) && ri.nodes > 0) || (!r.types.contains(PresetType.RELATION) && ri.relations > 0))) 179 180 { 180 181 String s = marktr("Member for role {0} of wrong type");
Note:
See TracChangeset
for help on using the changeset viewer.