Changeset 1616 in josm for trunk/src


Ignore:
Timestamp:
2009-05-24T12:18:25+02:00 (15 years ago)
Author:
stoecker
Message:

fix #2646 - illegal variable acces in relation editor

File:
1 edited

Legend:

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

    r1599 r1616  
    328328        memberData.setRowCount(0);
    329329        for (int i=0; i<clone.members.size(); i++) {
    330            
     330
    331331            // this whole section is aimed at finding out whether the
    332332            // relation member is "linked" with the next, i.e. whether
     
    335335            // symbol somehow places betweeen the two member lines!), and
    336336            // it should cache results, so... FIXME ;-)
    337            
     337
    338338            RelationMember em = clone.members.get(i);
    339339            boolean linked = false;
     
    345345                    n1 = ((Way) m.member).lastNode();
    346346                    break;
    347                 } else if (em.member instanceof Relation) {
     347                } else if (m.member instanceof Relation) {
    348348                    m = ((Relation)m.member).lastMember();
    349349                } else {
     
    357357                        n2 = ((Way) (m.member)).firstNode();
    358358                        break;
    359                     } else if (em.member instanceof Relation) {
     359                    } else if (m.member instanceof Relation) {
    360360                        m = ((Relation)(m.member)).firstMember();
    361361                    } else {
     
    365365            }
    366366            linked = (n1 != null) && n1.equals(n2);
    367            
    368             // end of section to determine linkedness. 
    369            
     367
     368            // end of section to determine linkedness.
     369
    370370            memberData.addRow(new Object[]{em.role, em.member, linked ? tr("yes") : tr("no")});
    371371        }
Note: See TracChangeset for help on using the changeset viewer.