Changeset 10901 in josm for trunk/src


Ignore:
Timestamp:
2016-08-26T19:32:24+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #13460 - remove with QuadBuckets.iterator() doesn't maintain size (patch by Gerd Petermann)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java

    r10748 r10901  
    502502        private int contentIndex;
    503503        private int iteratedOver;
     504        QuadBuckets<T> qb;
    504505
    505506        final QBLevel<T> nextContentNode(QBLevel<T> q) {
     
    522523            }
    523524            iteratedOver = 0;
     525            this.qb = qb;
    524526        }
    525527
     
    564566            contentIndex--;
    565567            T object = peek();
    566             currentNode.removeContent(object);
     568            if (currentNode.removeContent(object))
     569                qb.size--;
    567570        }
    568571    }
Note: See TracChangeset for help on using the changeset viewer.