Changeset 13033 in josm
- Timestamp:
- 2017-10-22T23:13:03+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r12876 r13033 667 667 return false; 668 668 } 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 1 2876674 */ 675 public boolean hasOnly DrawableNodes() {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() { 676 676 Node[] nodes = this.nodes; 677 677 for (Node node : nodes) { 678 if (!node.is Drawable())678 if (!node.isLatLonKnown()) 679 679 return false; 680 680 } … … 689 689 @Override 690 690 public boolean isDrawable() { 691 return super.isDrawable() && hasOnly DrawableNodes();691 return super.isDrawable() && hasOnlyLocatableNodes(); 692 692 } 693 693
Note:
See TracChangeset
for help on using the changeset viewer.