Ignore:
Timestamp:
13.02.2010 17:05:37 (2 years ago)
Author:
jttt
Message:

Fix #4519 JOSM doesn't show nor find token (negative) IDs

File:
1 edited

Legend:

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

    r2893 r2973  
    7373    /** 
    7474     * Decorates the name of primitive with its id, if the preference 
    75      * <tt>osm-primitives.showid</tt> is set. 
     75     * <tt>osm-primitives.showid</tt> is set. Shows unique id if osm-primitives.showid.new-primitives is set 
    7676     * 
    7777     * @param name  the name without the id 
     
    8181    protected String decorateNameWithId(String name, OsmPrimitive primitive) { 
    8282        if (Main.pref.getBoolean("osm-primitives.showid")) 
    83             return name + tr(" [id: {0}]", primitive.getId()); 
     83            if (Main.pref.getBoolean("osm-primitives.showid.new-primitives")) 
     84                return name + tr(" [id: {0}]", primitive.getUniqueId()); 
     85            else 
     86                return name + tr(" [id: {0}]", primitive.getId()); 
    8487        else 
    8588            return name; 
Note: See TracChangeset for help on using the changeset viewer.