diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-03-13 11:17:05 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-03-13 14:30:17 +0200 |
commit | a70b33be8bd64630bc0b67f0595b3576112e0723 (patch) | |
tree | c128381aae1c791bac70f35246e08e8ed3d32aa3 | |
parent | 45c0dd8844b784280d8ca59ab3f56a42d51a0c2b (diff) | |
download | qtlocation-mapboxgl-a70b33be8bd64630bc0b67f0595b3576112e0723.tar.gz |
[core] Fix crash at Placement::getSymbolPlacement()
-rw-r--r-- | src/mbgl/text/placement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/text/placement.cpp b/src/mbgl/text/placement.cpp index fff11ab185..e62be00b47 100644 --- a/src/mbgl/text/placement.cpp +++ b/src/mbgl/text/placement.cpp @@ -1235,7 +1235,7 @@ float Placement::zoomAdjustment(const float zoom) const { const JointPlacement* Placement::getSymbolPlacement(const SymbolInstance& symbol) const { assert(symbol.crossTileID != 0); auto found = placements.find(symbol.crossTileID); - return (found == placements.end()) ? &found->second : nullptr; + return (found != placements.end()) ? &found->second : nullptr; } Duration Placement::getUpdatePeriod(const float zoom) const { |