Ignore:
Timestamp:
2017-10-22T23:13:03+02:00 (6 years ago)
Author:
bastiK
Message:

fixed #15466 - Data filtering is not working properly for nodes (see #15315)

File:
1 edited

Legend:

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

    r12876 r13033  
    667667        return false;
    668668    }
    669    
    670     /**
    671      * Replies true if all nodes of the way are drawable, false otherwise.
    672      * @return true if all nodes of the way are drawable, false otherwise.
    673      * @since 12876
    674      */
    675     public boolean hasOnlyDrawableNodes() {
     669
     670    /**
     671     * Replies true if all nodes of the way have known lat/lon, false otherwise.
     672     * @return true if all nodes of the way have known lat/lon, false otherwise
     673     * @since 13033
     674     */
     675    public boolean hasOnlyLocatableNodes() {
    676676        Node[] nodes = this.nodes;
    677677        for (Node node : nodes) {
    678             if (!node.isDrawable())
     678            if (!node.isLatLonKnown())
    679679                return false;
    680680        }
     
    689689    @Override
    690690    public boolean isDrawable() {
    691         return super.isDrawable() && hasOnlyDrawableNodes();
     691        return super.isDrawable() && hasOnlyLocatableNodes();
    692692    }
    693693
Note: See TracChangeset for help on using the changeset viewer.