Ignore:
Timestamp:
2009-12-11T20:24:41+01:00 (14 years ago)
Author:
stoecker
Message:

applied #4146 - patch by mjulius - fix downloading incomplete relation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/Way.java

    r2591 r2609  
    2626    private Node[] nodes = new Node[0];
    2727    private BBox bbox;
    28     private boolean hasIncompleteNodes;
    2928
    3029    /**
     
    377376    }
    378377
    379     //TODO This method should not be necessary. hasIncomplete state should be updated automatically when incomplete state of nodes change
    380     public void setHasIncompleteNodes() {
    381         hasIncompleteNodes = false;
     378    public boolean hasIncompleteNodes() {
    382379        for (Node node:getNodes()) {
    383             if (node.isIncomplete()) {
    384                 hasIncompleteNodes = true;
    385                 break;
    386             }
    387         }
    388     }
    389 
    390     public boolean hasIncompleteNodes() {
    391         return hasIncompleteNodes;
     380            if (node.isIncomplete())
     381                return true;
     382        }
     383        return false;
    392384    }
    393385
Note: See TracChangeset for help on using the changeset viewer.