Ignore:
Timestamp:
2017-10-12T16:02:15+02:00 (7 years ago)
Author:
bastiK
Message:

see #15410 - change preferences scheme for named colors - makes runtime color name registry obsolete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/display/GPXSettingsPanel.java

    r12896 r12987  
    2626import org.openstreetmap.josm.actions.ExpertToggleAction;
    2727import org.openstreetmap.josm.data.PreferencesUtils;
     28import org.openstreetmap.josm.data.preferences.NamedColorProperty;
    2829import org.openstreetmap.josm.gui.layer.gpx.GpxDrawHelper;
    2930import org.openstreetmap.josm.gui.layer.markerlayer.Marker;
     
    329330                // ask the GPX draw for the correct color of that layer ( if there is one )
    330331                if (null != layerName) {
    331                     color = GpxDrawHelper.DEFAULT_COLOR.getChildColor(layerName).get();
     332                    color = GpxDrawHelper.DEFAULT_COLOR.getChildColor(
     333                            NamedColorProperty.COLOR_CATEGORY_LAYER, layerName, GpxDrawHelper.DEFAULT_COLOR.getName()).get();
    332334                } else {
    333335                    color = GpxDrawHelper.DEFAULT_COLOR.getDefaultValue();
Note: See TracChangeset for help on using the changeset viewer.