Changeset 8998 in josm for trunk/src


Ignore:
Timestamp:
2015-11-10T15:44:49+01:00 (9 years ago)
Author:
simon04
Message:

fix #12082 - Sorting relation with stop_exit_only role

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/sort/RelationSorter.java

    r8517 r8998  
    108108            final Map<String, RelationMember> platformByName = new HashMap<>();
    109109            for (RelationMember i : list) {
    110                 if ("platform".equals(i.getRole())) {
     110                if (i.getRole().startsWith("platform")) {
    111111                    final RelationMember old = platformByName.put(getStopName(i.getMember()), i);
    112112                    if (old != null) {
     
    119119            final List<RelationMember> sorted = new ArrayList<>(list.size());
    120120            for (RelationMember i : list) {
    121                 if ("stop".equals(i.getRole())) {
     121                if (i.getRole().startsWith("stop")) {
    122122                    sorted.add(i);
    123123                    final RelationMember platform = platformByName.remove(getStopName(i.getMember()));
Note: See TracChangeset for help on using the changeset viewer.