Changeset 5750 in josm for trunk


Ignore:
Timestamp:
2013-03-02T18:51:23+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #8481 - RelationComparator does not detect equal relations

File:
1 edited

Legend:

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

    r5710 r5750  
    395395                return comp;
    396396
    397             return r1.getUniqueId() > r2.getUniqueId()?1:-1;
     397            if (r1.getUniqueId() > r2.getUniqueId())
     398                return 1;
     399            else if (r1.getUniqueId() < r2.getUniqueId())
     400                return -1;
     401            else
     402                return 0;
    398403        }
    399404    };
Note: See TracChangeset for help on using the changeset viewer.