- Timestamp:
- 2010-10-12T21:24:59+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java
r3584 r3603 154 154 155 155 QBLevel findBucket(BBox bbox) { 156 if ( isLeaf())156 if (!hasChildren()) 157 157 return this; 158 158 else { … … 361 361 QBLevel nextNode() 362 362 { 363 if ( this.isLeaf())363 if (!this.hasChildren()) 364 364 return this.nextSibling(); 365 365 return this.firstChild(); … … 417 417 search_contents(search_bbox, result); 418 418 } 419 if (this.isLeaf())420 return;421 419 422 420 if (debug) { … … 449 447 int index_of(QBLevel find_this) 450 448 { 451 if (this.isLeaf())452 return -1;453 454 449 QBLevel[] children = getChildren(); 455 450 for (int i = 0; i < QuadTiling.TILES_PER_LEVEL; i++) { … … 632 627 out(this + " is a new iterator qb: " + qb + " size: " + qb.size()); 633 628 } 634 if (qb.root. isLeaf() || qb.root.hasContent()) {629 if (!qb.root.hasChildren() || qb.root.hasContent()) { 635 630 current_node = qb.root; 636 631 } else {
Note:
See TracChangeset
for help on using the changeset viewer.