Changeset 19300 in josm
- Timestamp:
- 2025-01-28T15:55:24+01:00 (35 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/display/ColorPreference.java
r18871 r19300 111 111 */ 112 112 public String getDisplay() { 113 switch (info.getCategory()) { 114 case NamedColorProperty.COLOR_CATEGORY_MAPPAINT: 115 if (info.getSource() != null) 116 return tr("Paint style {0}: {1}", tr(I18n.escape(info.getSource())), tr(info.getName())); 117 // fall through 118 default: 119 if (info.getSource() != null) 120 return tr(I18n.escape(info.getSource())) + " - " + tr(I18n.escape(info.getName())); 121 else 122 return tr(I18n.escape(info.getName())); 123 } 113 if (info.getSource() != null) { 114 if (info.getCategory() == NamedColorProperty.COLOR_CATEGORY_MAPPAINT) 115 return tr("Paint style {0}: {1}", tr(I18n.escape(info.getSource())), tr(info.getName())); 116 else 117 return tr(I18n.escape(info.getSource())) + " - " + tr(I18n.escape(info.getName())); 118 } 119 else 120 return tr(I18n.escape(info.getName())); 124 121 } 125 122
Note:
See TracChangeset
for help on using the changeset viewer.