Ignore:
Timestamp:
2017-11-22T01:49:53+01:00 (6 years ago)
Author:
Don-vip
Message:

fix #14082 - Remove coordinates from nodes in validator and selection dialogs by default (new option like objects ids to display them)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/DefaultNameFormatter.java

    r12846 r13142  
    186186                preset.nameTemplate.appendText(name, node);
    187187            }
    188             if (node.getCoor() != null) {
    189                 name.append(" \u200E(").append(CoordinateFormatManager.getDefaultFormat().latToString(node)).append(", ")
     188            if (node.isLatLonKnown() && Config.getPref().getBoolean("osm-primitives.showcoor")) {
     189                name.append(" \u200E(")
     190                    .append(CoordinateFormatManager.getDefaultFormat().latToString(node)).append(", ")
    190191                    .append(CoordinateFormatManager.getDefaultFormat().lonToString(node)).append(')');
    191192            }
    192193        }
    193194        decorateNameWithId(name, node);
    194 
    195195
    196196        String result = name.toString();
Note: See TracChangeset for help on using the changeset viewer.