Ignore:
Timestamp:
2011-03-12T19:43:02+01:00 (13 years ago)
Author:
bastiK
Message:

mapcss: fix conditions

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

Legend:

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

    r3904 r3980  
    150150            } else if (equal(id, "connection") && (e.osm instanceof Node)) {
    151151                return ((Node) e.osm).isConnectionNode();
     152            } else if (equal(id, "tagged")) {
     153                return e.osm.isTagged();
    152154            }
    153155            return true;
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Expression.java

    r3903 r3980  
    235235                if (b == null)
    236236                    return null;
    237                 return args.get(b ? 0 : 1).evaluate(env);
     237                return args.get(b ? 1 : 2).evaluate(env);
    238238            }
    239239            if (equal(name, "and")) {
Note: See TracChangeset for help on using the changeset viewer.