Changeset 357 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2007-10-10T00:10:27+02:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r343 r357 63 63 return o instanceof Way ? Long.valueOf(id).compareTo(o.id) : -1; 64 64 } 65 65 66 66 @Deprecated 67 67 public boolean isIncomplete() { 68 return false;68 return incomplete; 69 69 } 70 70 } -
trunk/src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java
r343 r357 93 93 */ 94 94 public void visit(Node n) { 95 if (n.incomplete) return; 96 95 97 Color color = null; 96 98 if (inactive) … … 108 110 */ 109 111 public void visit(Way w) { 112 if (w.incomplete) return; 113 110 114 Color wayColor; 111 115 if (inactive) -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r343 r357 132 132 Node minPrimitive = null; 133 133 for (Node n : Main.ds.nodes) { 134 if (n.deleted )134 if (n.deleted || n.incomplete) 135 135 continue; 136 136 Point sp = getPoint(n.eastNorth); -
trunk/src/org/openstreetmap/josm/gui/SelectionManager.java
r343 r357 297 297 // nodes 298 298 for (Node n : Main.ds.nodes) { 299 if (!n.deleted && r.contains(nc.getPoint(n.eastNorth)))299 if (!n.deleted && !n.incomplete && r.contains(nc.getPoint(n.eastNorth))) 300 300 selection.add(n); 301 301 } … … 303 303 // ways 304 304 for (Way w : Main.ds.ways) { 305 if (w.deleted || w.nodes.isEmpty() )305 if (w.deleted || w.nodes.isEmpty() || w.incomplete) 306 306 continue; 307 307 if (alt) { 308 308 for (Node n : w.nodes) { 309 if ( r.contains(nc.getPoint(n.eastNorth))) {309 if (!n.incomplete && r.contains(nc.getPoint(n.eastNorth))) { 310 310 selection.add(w); 311 break; 311 break; 312 } 312 313 } 313 }314 314 } else { 315 315 boolean allIn = true; 316 316 for (Node n : w.nodes) { 317 if (! r.contains(nc.getPoint(n.eastNorth))) {317 if (!n.incomplete && !r.contains(nc.getPoint(n.eastNorth))) { 318 318 allIn = false; 319 319 break; 320 }321 }320 } 321 } 322 322 if (allIn) selection.add(w); 323 323 } 324 }324 } 325 325 } 326 326 return selection;
Note:
See TracChangeset
for help on using the changeset viewer.