Changeset 26533 in osm


Ignore:
Timestamp:
2011-08-12T10:15:25+02:00 (13 years ago)
Author:
roland
Message:

Fixed a bug concerning relation role treatment in the stoplist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/public_transport/src/public_transport/RoutePatternAction.java

    r26168 r26533  
    16231623                Double.parseDouble(tfSuggestStopsLimit.getText()) * 9.0 / 1000000.0 )
    16241624              {
    1625             sr.role = (String)stoplistData.getValueAt(i, 1);
     1625            sr.role = (String)stoplistData.getValueAt(i, STOPLIST_ROLE_COLUMN);
    16261626            srm.addElement(sr);
    16271627              }
    16281628              else
    16291629              {
    1630             sr.role = (String)stoplistData.getValueAt(i, 1);
     1630            sr.role = (String)stoplistData.getValueAt(i, STOPLIST_ROLE_COLUMN);
    16311631            sr.index = segmentMetrics.size()*2;
    16321632            sr.pos = 0;
     
    16551655                  Double.parseDouble(tfSuggestStopsLimit.getText()) * 9.0 / 1000000.0 )
    16561656            {
    1657               sr.role = (String)stoplistData.getValueAt(i, 1);
     1657              sr.role = (String)stoplistData.getValueAt(i, STOPLIST_ROLE_COLUMN);
    16581658              srm.addElement(sr);
    16591659            }
    16601660            else
    16611661            {
    1662               sr.role = (String)stoplistData.getValueAt(i, 1);
     1662              sr.role = (String)stoplistData.getValueAt(i, STOPLIST_ROLE_COLUMN);
    16631663              sr.index = segmentMetrics.size()*2;
    16641664              sr.pos = 0;
     
    16931693          if (stoplistTable.isRowSelected(i))
    16941694          {
    1695             String role = (String)(stoplistData.getValueAt(i, 1));
     1695            String role = (String)(stoplistData.getValueAt(i, STOPLIST_ROLE_COLUMN));
    16961696            RelationMember markedNode = new RelationMember
    16971697            (role, stoplistData.nodes.elementAt(i));
     
    17071707        for (int i = stoplistData.getRowCount()-1; i >=0; --i)
    17081708        {
    1709           String role = (String)(stoplistData.getValueAt(i, 1));
     1709          String role = (String)(stoplistData.getValueAt(i, STOPLIST_ROLE_COLUMN));
    17101710          RelationMember markedNode = new RelationMember
    17111711              (role, stoplistData.nodes.elementAt(i));
     
    19431943    {
    19441944      RelationMember member = new RelationMember
    1945       ((String)(stoplistData.getValueAt(i, 1)), stoplistData.nodes.elementAt(i));
     1945          ((String)(stoplistData.getValueAt(i, STOPLIST_ROLE_COLUMN)),
     1946           stoplistData.nodes.elementAt(i));
    19461947      currentRoute.addMember(member);
    19471948    }
Note: See TracChangeset for help on using the changeset viewer.