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


Ignore:
Timestamp:
2011-03-27T14:42:14+02:00 (14 years ago)
Author:
bastiK
Message:

see #6122 - allow concat function in mapcss expressions (patch by cmuelle8)

File:
1 edited

Legend:

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

    r4007 r4008  
    129129            public float blue(Color c) {
    130130                return Utils.color_int2float(c.getBlue());
     131            }
     132
     133            public String concat(Object... args) {
     134                StringBuilder res = new StringBuilder();
     135                for (Object f : args) {
     136                    res.append(f.toString());
     137                }
     138                return res.toString();
    131139            }
    132140
Note: See TracChangeset for help on using the changeset viewer.