Commit 002e6470 authored by Johannes Zarl-Zierl's avatar Johannes Zarl-Zierl

Fix assertion in MapView::buildImageClusters

While the basic assertion, that the "most aggregated" GeoCluster
collection should have at least one entry (i.e. aggregation can not lead
to empty clusters), this can of course only be true when the base
cluster is not already empty.
parent 616a5b7a
......@@ -297,7 +297,7 @@ void Map::MapView::buildImageClusters()
// remove aggregated clusters from set of eligible clusters
// 4. with remaining clusters, continue at 2.
Q_ASSERT(clusters[MAP_CLUSTER_LEVELS - 1].size() > 0);
Q_ASSERT(clusters[MAP_CLUSTER_LEVELS - 1].size() > 0 || clusters[0].size() == 0);
for (int lvl = 0; lvl < MAP_CLUSTER_LEVELS; lvl++) {
qCInfo(MapLog) << "MapView:" << clusters[lvl].size() << "clusters on level" << lvl;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment