Changeset 17916 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2021-06-02T20:40:56+02:00 (3 years ago)
Author:
simon04
Message:

fix #20957, see #20744 - Fix MapCSS function round

File:
1 edited

Legend:

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

    r17832 r17916  
    228228        FACTORY_MAP.put("rgba", Factory.of(float.class, float.class, float.class, float.class, Functions::rgba));
    229229        FACTORY_MAP.put("role", Factory.ofEnv(Functions::role));
    230         FACTORY_MAP.put("round", Factory.of(Math::acos));
     230        FACTORY_MAP.put("round", Factory.of(Math::round));
    231231        FACTORY_MAP.put("setting", Factory.ofEnv(String.class, Functions::setting));
    232232        FACTORY_MAP.put("signum", Factory.of(Math::signum));
Note: See TracChangeset for help on using the changeset viewer.