Ticket #20729: 20729-replace-isDrawable.patch
File 20729-replace-isDrawable.patch, 2.2 KB (added by , 4 years ago) |
---|
-
TabularUnified src/org/openstreetmap/josm/data/osm/visitor/paint/relations/Multipolygon.java
513 513 for (RelationMember m : r.getMembers()) { 514 514 if (m.getMember().isIncomplete()) { 515 515 this.incomplete = true; 516 } else if ( m.getMember().isDrawable() && m.isWay()) {516 } else if (!m.getMember().isDeleted() && m.isWay()) { 517 517 Way w = m.getWay(); 518 518 519 if ( w.getNodesCount() < 2) {519 if (!w.hasOnlyLocatableNodes() || w.getNodesCount() < 2) { 520 520 continue; 521 521 } 522 522 -
TabularUnified src/org/openstreetmap/josm/data/validation/tests/LongSegment.java
135 135 136 136 private static boolean isUsableNode(OsmPrimitive p) { 137 137 // test changed nodes - ways referred by them may not be checked automatically. 138 return p instanceof Node && p.isDrawable();138 return p instanceof Node && ((Node) p).isLatLonKnown(); 139 139 } 140 140 141 141 private static boolean isUsableWay(OsmPrimitive p) { -
TabularUnified src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java
594 594 } 595 595 Node a = w.getNode(i-1); 596 596 Node b = w.getNode(i); 597 if (a.is Drawable() && b.isDrawable()) {597 if (a.isLatLonKnown() && b.isLatLonKnown()) { 598 598 MyWaySegment ws = new MyWaySegment(w, a, b, concersArea); 599 599 ret.add(ws); 600 600 }