Changeset 33511 in osm for applications/editors/josm/plugins/pt_assistant
- Timestamp:
- 2017-08-22T10:48:30+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/actions/SortPTRouteMembersAction.java
r33510 r33511 150 150 ptstops.forEach(stop -> { 151 151 Way way = assigner.get(stop); 152 if (way == null) { 153 addStopToRelation(rel, stop); 154 } 152 155 if (!wayStop.containsKey(way)) 153 156 wayStop.put(way, new ArrayList<PTStop>()); … … 157 160 unnamed.forEach(stop -> { 158 161 Way way = assigner.get(stop); 162 if (way == null) { 163 addStopToRelation(rel, stop); 164 } 159 165 if (!wayStop.containsKey(way)) 160 166 wayStop.put(way, new ArrayList<PTStop>()); … … 185 191 stps.forEach(stop -> { 186 192 if (stop != null) { 187 if (stop.getStopPositionRM() != null) 188 rel.addMember(stop.getStopPositionRM()); 189 if (stop.getPlatformRM() != null) 190 rel.addMember(stop.getPlatformRM()); 193 addStopToRelation(rel, stop); 191 194 } 192 195 }); … … 196 199 197 200 wayMembers.forEach(rel::addMember); 201 } 202 203 private static void addStopToRelation(Relation rel, PTStop stop) { 204 if (stop.getStopPositionRM() != null) 205 rel.addMember(stop.getStopPositionRM()); 206 if (stop.getPlatformRM() != null) 207 rel.addMember(stop.getPlatformRM()); 198 208 } 199 209
Note:
See TracChangeset
for help on using the changeset viewer.