Changeset 22805 in osm for applications/editors/josm


Ignore:
Timestamp:
2010-08-27T09:17:34+02:00 (14 years ago)
Author:
stoecker
Message:

fix due to changes in josm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/RelationChecker.java

    r22457 r22805  
    1414import org.openstreetmap.josm.gui.preferences.TaggingPresetPreference;
    1515import org.openstreetmap.josm.gui.tagging.TaggingPreset;
     16import org.openstreetmap.josm.gui.tagging.TaggingPreset.PresetType;
    1617import org.openstreetmap.josm.plugins.validator.OSMValidatorPlugin;
    1718import org.openstreetmap.josm.plugins.validator.Severity;
     
    175176                        }
    176177                    }
    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)))
    179180                    {
    180181                        String s = marktr("Member for role {0} of wrong type");
Note: See TracChangeset for help on using the changeset viewer.