Changeset 17764 in josm for trunk/src


Ignore:
Timestamp:
2021-04-13T13:26:01+02:00 (3 years ago)
Author:
simon04
Message:

see #20744 - Fix MapCSS function prop

Regression of r17758.

File:
1 edited

Legend:

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

    r17759 r17764  
    207207        FACTORY_MAP.put("print", Factory.of(Object.class, Functions::print));
    208208        FACTORY_MAP.put("println", Factory.of(Object.class, Functions::println));
    209         FACTORY_MAP.put("prop", Factory.ofEnv(String.class, Functions::prop));
     209        FACTORY_MAP.put("prop", Factory.ofEnv(String.class, String.class, Functions::prop, Functions::prop));
    210210        FACTORY_MAP.put("red", Factory.of(Color.class, Functions::red));
    211211        FACTORY_MAP.put("regexp_match", Factory.of(String.class, String.class, String.class, Functions::regexp_match, Functions::regexp_match));
Note: See TracChangeset for help on using the changeset viewer.