Ticket #11479: bug-11479.patch

File bug-11479.patch, 818 bytes (added by michael2402, 9 years ago)

This should fix it.

  • src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java

    diff --git a/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java b/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java
    index ff9936f..8dad7ee 100644
    a b public class MapCSSStyleSource extends StyleSource {  
    282282                    }
    283283                } else if (c instanceof KeyValueCondition) {
    284284                    KeyValueCondition keyValueCondition = (KeyValueCondition) c;
    285                     if (!Op.NEGATED_OPS.contains(keyValueCondition)) {
     285                    if (!Op.NEGATED_OPS.contains(keyValueCondition.op)) {
    286286                        key = keyValueCondition.k;
    287287                    }
    288288                }