Changeset 16857 in josm


Ignore:
Timestamp:
2020-08-10T14:10:34+02:00 (4 years ago)
Author:
Klumbumbus
Message:

see #19574 - MapCSS color setting: Use logic from MapCSSParser to create the NamedColorProperty (patch by taylor.smock)

File:
1 edited

Legend:

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

    r16843 r16857  
    5151                return forLabelAndDefault(c, Color.class, (label, defaultValue) -> {
    5252                    final NamedColorProperty property = new NamedColorProperty(NamedColorProperty.COLOR_CATEGORY_MAPPAINT,
    53                             parentStyle.getFileNamePart(), label, defaultValue);
     53                            parentStyle.title == null ? "MapCSS" : parentStyle.title, label, defaultValue);
    5454                    return new StyleSetting.ColorStyleSetting(parentStyle, label, property);
    5555                });
Note: See TracChangeset for help on using the changeset viewer.