Changeset 3712 in josm


Ignore:
Timestamp:
2010-12-11T17:23:12+01:00 (11 years ago)
Author:
jttt
Message:

Fix #5683 relation-editor: order of added objects is up-side-down

File:
1 edited

Legend:

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

    r3605 r3712  
    382382        if (primitives == null)
    383383            return;
     384        int index = 0;
    384385        for (OsmPrimitive primitive : primitives) {
    385386            RelationMember member = new RelationMember("", primitive);
    386             members.add(0, member);
     387            members.add(index++, member);
    387388        }
    388389        fireTableDataChanged();
     
    416417        for (OsmPrimitive primitive : primitives) {
    417418            RelationMember member = new RelationMember("", primitive);
    418             members.add(idx, member);
     419            members.add(idx++, member);
    419420        }
    420421        fireTableDataChanged();
Note: See TracChangeset for help on using the changeset viewer.