Changeset 1616 in josm
- Timestamp:
- 2009-05-24T12:18:25+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r1599 r1616 328 328 memberData.setRowCount(0); 329 329 for (int i=0; i<clone.members.size(); i++) { 330 330 331 331 // this whole section is aimed at finding out whether the 332 332 // relation member is "linked" with the next, i.e. whether … … 335 335 // symbol somehow places betweeen the two member lines!), and 336 336 // it should cache results, so... FIXME ;-) 337 337 338 338 RelationMember em = clone.members.get(i); 339 339 boolean linked = false; … … 345 345 n1 = ((Way) m.member).lastNode(); 346 346 break; 347 } else if ( em.member instanceof Relation) {347 } else if (m.member instanceof Relation) { 348 348 m = ((Relation)m.member).lastMember(); 349 349 } else { … … 357 357 n2 = ((Way) (m.member)).firstNode(); 358 358 break; 359 } else if ( em.member instanceof Relation) {359 } else if (m.member instanceof Relation) { 360 360 m = ((Relation)(m.member)).firstMember(); 361 361 } else { … … 365 365 } 366 366 linked = (n1 != null) && n1.equals(n2); 367 368 // end of section to determine linkedness. 369 367 368 // end of section to determine linkedness. 369 370 370 memberData.addRow(new Object[]{em.role, em.member, linked ? tr("yes") : tr("no")}); 371 371 }
Note:
See TracChangeset
for help on using the changeset viewer.