summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-06-12 19:14:20 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-06-12 20:39:03 +0300
commit2acfa8b86f9c517c16a00db91e884f3a5e669456 (patch)
treec24b919b04b29eeb4a5edd3e4a9f459acd16d7f0
parentce91218b420cd9e57a3367679300f8ba4027d6c5 (diff)
downloadqtlocation-mapboxgl-2acfa8b86f9c517c16a00db91e884f3a5e669456.tar.gz
[core] Keep the same sort index for all feature rings
-rw-r--r--src/mbgl/geometry/feature_index.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/geometry/feature_index.cpp b/src/mbgl/geometry/feature_index.cpp
index d42efa16f0..f61f89b8e7 100644
--- a/src/mbgl/geometry/feature_index.cpp
+++ b/src/mbgl/geometry/feature_index.cpp
@@ -32,7 +32,7 @@ void FeatureIndex::insert(const GeometryCollection& geometries,
envelope.min.y < util::EXTENT &&
envelope.max.x >= 0 &&
envelope.max.y >= 0) {
- grid.insert(IndexedSubfeature(index, sourceLayerName, bucketLeaderID, featureSortIndex++),
+ grid.insert(IndexedSubfeature(index, sourceLayerName, bucketLeaderID, featureSortIndex),
{convertPoint<float>(envelope.min), convertPoint<float>(envelope.max)});
}
}