Changeset 2594 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-12-08T08:08:53+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/DatasetConsistencyTest.java
r2578 r2594 48 48 private void checkCompleteWaysWithIncompleteNodes() { 49 49 for (Way way:dataSet.getWays()) { 50 if ( !way.isIncomplete()) {50 if (way.isUsable()) { 51 51 for (Node node:way.getNodes()) { 52 52 if (node.isIncomplete()) { 53 writer.println(String.format("%s is complete but contains incomplete node '%s'", way, node));53 writer.println(String.format("%s is usable but contains incomplete node '%s'", way, node)); 54 54 } 55 55 } -
trunk/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java
r2590 r2594 170 170 public void drawWay(Way w, int fillAreas) { 171 171 if(w.getNodesCount() < 2) 172 return; 173 174 if (w.hasIncompleteNodes()) 172 175 return; 173 176 … … 1311 1314 boolean drawable(OsmPrimitive osm) 1312 1315 { 1313 return osm.isUsable() && !osm.isFiltered();1316 return !osm.isDeleted() && !osm.isIncomplete() && !osm.isFiltered(); 1314 1317 } 1315 1318 … … 1412 1415 /*** SELECTED ***/ 1413 1416 for (final OsmPrimitive osm : data.getSelected()) { 1414 if (!osm.isIncomplete() && !osm.isDeleted() && !(osm instanceof Node) 1415 && osm.mappaintDrawnCode != paintid 1417 if (osm.isUsable() && !(osm instanceof Node) && osm.mappaintDrawnCode != paintid 1416 1418 ) { 1417 1419 osm.visit(new AbstractVisitor() {
Note:
See TracChangeset
for help on using the changeset viewer.