Changeset 11886 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2017-04-11T23:41:13+02:00 (7 years ago)
Author:
Don-vip
Message:

see #14635 - add a new unit test (not directly related to the bug)

File:
1 edited

Legend:

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

    r11746 r11886  
    135135    private int firstGroupIdx;
    136136    private void makeLoopIfNeeded(final List<WayConnectionType> con, final int i) {
    137         boolean loop;
     137        boolean loop = false;
    138138        if (i == firstGroupIdx) { //is primitive loop
    139139            loop = determineDirection(i, FORWARD, i) == FORWARD;
    140         } else {
     140        } else if (i >= 0) {
    141141            loop = determineDirection(i, con.get(i).direction, firstGroupIdx) == con.get(firstGroupIdx).direction;
    142142        }
Note: See TracChangeset for help on using the changeset viewer.