Ignore:
Timestamp:
2011-06-12T09:16:12+02:00 (13 years ago)
Author:
zverik
Message:

fixed displaying relations of similar names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/relcontext/src/relcontext/RelContextDialog.java

    r25794 r26125  
    306306        Set<Relation> relations = new TreeSet<Relation>(new Comparator<Relation>() {
    307307            public int compare( Relation r1, Relation r2 ) {
    308                 return r1.getDisplayName(formatter).compareTo(r2.getDisplayName(formatter));
     308                int diff = r1.getDisplayName(formatter).compareTo(r2.getDisplayName(formatter));
     309                return diff != 0 ? diff : r1.compareTo(r2);
    309310            }
    310311        });
Note: See TracChangeset for help on using the changeset viewer.