Changeset 11039 in josm for trunk/src


Ignore:
Timestamp:
2016-09-22T12:56:09+02:00 (3 years ago)
Author:
simon04
Message:

fix #13574 - Waypoint labelling "None" doesn't work

Store space character since Preferences#put(java.lang.String, java.lang.String) ignores empty strings.

File:
1 edited

Legend:

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

    r10627 r11039  
    3636    private static final int WAYPOINT_LABEL_CUSTOM = 6;
    3737    private static final String[] LABEL_PATTERN_TEMPLATE = new String[] {Marker.LABEL_PATTERN_AUTO, Marker.LABEL_PATTERN_NAME,
    38         Marker.LABEL_PATTERN_DESC, "{special:everything}", "?{ '{name}' | '{desc}' | '{formattedWaypointOffset}' }", ""};
     38        Marker.LABEL_PATTERN_DESC, "{special:everything}", "?{ '{name}' | '{desc}' | '{formattedWaypointOffset}' }", " "};
    3939    private static final String[] LABEL_PATTERN_DESC = new String[] {tr("Auto"), /* gpx data field name */ trc("gpx_field", "Name"),
    4040        /* gpx data field name */ trc("gpx_field", "Desc(ription)"), tr("Everything"), tr("Name or offset"), tr("None"), tr("Custom")};
Note: See TracChangeset for help on using the changeset viewer.