summaryrefslogtreecommitdiff
path: root/src/mbgl
diff options
context:
space:
mode:
authorAnsis Brammanis <ansis@mapbox.com>2018-01-10 16:21:07 -0500
committerAnsis Brammanis <ansis.brammanis@gmail.com>2018-01-11 14:07:00 -0500
commit68159f8d01c468e359c631fd292b146a19bb27a5 (patch)
treed0c329e85402619641fb1d5e5a61cf1035bf878c /src/mbgl
parenta09eb55ae17e748d936ab298912b95236e4d4c64 (diff)
downloadqtlocation-mapboxgl-68159f8d01c468e359c631fd292b146a19bb27a5.tar.gz
[core] fix updating CrossTileSymbolIndex after bucket update
emplace does not overwite existing entries
Diffstat (limited to 'src/mbgl')
-rw-r--r--src/mbgl/text/cross_tile_symbol_index.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/text/cross_tile_symbol_index.cpp b/src/mbgl/text/cross_tile_symbol_index.cpp
index 6efded8e4a..30d265d885 100644
--- a/src/mbgl/text/cross_tile_symbol_index.cpp
+++ b/src/mbgl/text/cross_tile_symbol_index.cpp
@@ -93,6 +93,8 @@ bool CrossTileSymbolLayerIndex::addBucket(const OverscaledTileID& tileID, Symbol
}
}
+
+ indexes[tileID.overscaledZ].erase(tileID);
indexes[tileID.overscaledZ].emplace(tileID, TileLayerIndex(tileID, bucket.symbolInstances, bucket.bucketInstanceId));
return true;
}