Ignore:
Timestamp:
2009-11-08T17:51:35+01:00 (14 years ago)
Author:
jttt
Message:

Use refererrers in Draw, SplitWay and UnGlue actions

File:
1 edited

Legend:

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

    r2407 r2412  
    773773    public Way getWayForNode(Node n) {
    774774        Way way = null;
    775         for (Way w : getCurrentDataSet().getWays()) {
     775        for (Way w : OsmPrimitive.getFilteredList(n.getReferrers(), Way.class)) {
    776776            if (!w.isUsable() || w.getNodesCount() < 1) {
    777777                continue;
Note: See TracChangeset for help on using the changeset viewer.