Changeset 16000 in josm


Ignore:
Timestamp:
2020-03-02T22:55:05+01:00 (3 months ago)
Author:
simon04
Message:

see #18802 - fix MapCSSRendererTest.testRender[relation-linkselector]

File:
1 edited

Legend:

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

    r15989 r16000  
    267267                MapCSSRule r = rules.get(ruleIndex);
    268268                for (Selector selector : r.selectors) {
    269                     final List<Condition> conditions = selector.getConditions();
     269                    Selector selRightmost = selector;
     270                    while (selRightmost instanceof Selector.ChildOrParentSelector) {
     271                        selRightmost = ((Selector.ChildOrParentSelector) selRightmost).right;
     272                    }
     273                    final List<Condition> conditions = selRightmost.getConditions();
    270274                    if (conditions == null || conditions.isEmpty()) {
    271275                        remaining.set(ruleIndex);
Note: See TracChangeset for help on using the changeset viewer.