Changeset 14836 in josm for trunk/src


Ignore:
Timestamp:
2019-03-05T15:57:50+01:00 (6 years ago)
Author:
GerdP
Message:

simplify code and avoid use of CopyList constructor

File:
1 edited

Legend:

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

    r14828 r14836  
    542542            if (ws.lowerIndex < 0 || ws.lowerIndex + 1 >= ws.way.getNodesCount())
    543543                return;
    544             visit(ws.way.getNodes().get(ws.lowerIndex));
    545             visit(ws.way.getNodes().get(ws.lowerIndex + 1));
     544            visit(ws.getFirstNode());
     545            visit(ws.getSecondNode());
    546546        }
    547547
Note: See TracChangeset for help on using the changeset viewer.