Changeset 5710 in josm


Ignore:
Timestamp:
2013-02-12T21:48:45+01:00 (12 years ago)
Author:
Don-vip
Message:

fix #8419 - RelationComparator considers different relations equal (patch by Zverikk)

File:
1 edited

Legend:

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

    r5346 r5710  
    121121     * @param name  the name without the id
    122122     * @param primitive the primitive
    123      * @return the decorated name
    124123     */
    125124    protected void decorateNameWithId(StringBuilder name, IPrimitive primitive) {
     
    384383                String name2 = getRelationName(r2);
    385384
    386                 return ALPHANUM_COMPARATOR.compare(name1, name2);
     385                comp = ALPHANUM_COMPARATOR.compare(name1, name2);
     386                if (comp != 0)
     387                    return comp;
    387388            }
    388389
Note: See TracChangeset for help on using the changeset viewer.