From 2acfa8b86f9c517c16a00db91e884f3a5e669456 Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Wed, 12 Jun 2019 19:14:20 +0300 Subject: [core] Keep the same sort index for all feature rings --- src/mbgl/geometry/feature_index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(envelope.min), convertPoint(envelope.max)}); } } -- cgit v1.2.1