Changeset 8741 in josm for trunk/src/org


Ignore:
Timestamp:
2015-09-10T08:45:02+02:00 (9 years ago)
Author:
simon04
Message:

fix #11846 - MapCSS validator: make ignoring "Whole group" work again

Location:
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java

    r8674 r8741  
    656656        public String toString() {
    657657            return base + (Range.ZERO_TO_INFINITY.equals(range) ? "" : range) + Utils.join("", conds)
    658                     + (subpart != null ? "::" + subpart : "");
     658                    + (subpart != null && subpart != Subpart.DEFAULT_SUBPART ? "::" + subpart : "");
    659659        }
    660660    }
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Subpart.java

    r8624 r8741  
    2929            return id;
    3030        }
     31
     32        @Override
     33        public String toString() {
     34            return id;
     35        }
    3136    }
    3237
     
    4752            return Cascade.convertTo(id.evaluate(env), String.class);
    4853        }
     54
     55        @Override
     56        public String toString() {
     57            return String.valueOf(id);
     58        }
    4959    }
    5060}
Note: See TracChangeset for help on using the changeset viewer.