Changeset 16319 in josm for trunk/src/org/openstreetmap/josm/gui/tagging
- Timestamp:
- 2020-04-17T15:01:21+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/Combo.java
r16315 r16319 15 15 import org.openstreetmap.josm.data.tagging.ac.AutoCompletionPriority; 16 16 import org.openstreetmap.josm.gui.MainApplication; 17 import org.openstreetmap.josm.gui.mappaint.mapcss.CSSColors; 17 18 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletingTextField; 18 19 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionList; … … 135 136 136 137 protected Color getColor() { 137 return ColorHelper.html2color(String.valueOf(getSelectedItem())); 138 String colorString = String.valueOf(getSelectedItem()); 139 return colorString.startsWith("#") 140 ? ColorHelper.html2color(colorString) 141 : CSSColors.get(colorString); 138 142 } 139 143
Note:
See TracChangeset
for help on using the changeset viewer.