Changeset 6762 in josm
- Timestamp:
- 2014-01-27T03:20:43+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r6720 r6762 308 308 String getMessage(OsmPrimitive p) { 309 309 if (errors.isEmpty()) { 310 return null; 310 // Return something to avoid NPEs 311 return rule.declaration.toString(); 311 312 } else { 312 313 final Object val = errors.keySet().iterator().next().val; -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java
r6748 r6762 230 230 if (ChildOrParentSelectorType.ELEMENT_OF.equals(type)) { 231 231 232 if (e.osm instanceof Node ) {232 if (e.osm instanceof Node || e.osm.getDataSet() == null) { 233 233 // nodes cannot contain elements 234 234 return false;
Note:
See TracChangeset
for help on using the changeset viewer.