- Timestamp:
- 2013-11-22T22:15:16+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/validation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/Test.java
r6354 r6400 154 154 progressMonitor.setTicksCount(selection.size()); 155 155 for (OsmPrimitive p : selection) { 156 if ( p.isUsable()) {156 if (isPrimitiveUsable(p)) { 157 157 p.accept(this); 158 158 } 159 159 progressMonitor.worked(1); 160 160 } 161 } 162 163 public boolean isPrimitiveUsable(OsmPrimitive p) { 164 return p.isUsable() && (!(p instanceof Way) || (((Way) p).getNodesCount() > 1)); // test only Ways with at least 2 nodes 161 165 } 162 166 -
trunk/src/org/openstreetmap/josm/data/validation/tests/UntaggedWay.java
r6240 r6400 153 153 return deletePrimitivesIfNeeded(testError.getPrimitives()); 154 154 } 155 156 @Override 157 public boolean isPrimitiveUsable(OsmPrimitive p) { 158 return p.isUsable(); 159 } 155 160 }
Note:
See TracChangeset
for help on using the changeset viewer.