Changeset 13048 in josm


Ignore:
Timestamp:
2017-10-28T16:24:44+02:00 (16 months ago)
Author:
Don-vip
Message:

fix #15458 - IOOBE at ImproveWayAccuracyAction.paint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java

    r12987 r13048  
    3737import org.openstreetmap.josm.data.osm.WaySegment;
    3838import org.openstreetmap.josm.data.preferences.CachingProperty;
     39import org.openstreetmap.josm.data.preferences.IntegerProperty;
    3940import org.openstreetmap.josm.data.preferences.NamedColorProperty;
    40 import org.openstreetmap.josm.data.preferences.IntegerProperty;
    4141import org.openstreetmap.josm.data.preferences.StrokeProperty;
    4242import org.openstreetmap.josm.gui.MainApplication;
     
    278278
    279279                // Only draw line if node is not first and/or last
    280                 if (index != 0 && index != (nodes.size() - 1)) {
     280                if (index > 0 && index < (nodes.size() - 1)) {
    281281                    p1 = nodes.get(index - 1);
    282282                    p2 = nodes.get(index + 1);
Note: See TracChangeset for help on using the changeset viewer.