summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2017-02-23 14:15:10 -0800
committerChris Loer <chris.loer@gmail.com>2017-02-23 14:15:10 -0800
commitf66d98095e6ab682f06460e3aac0268ee6db341b (patch)
tree6d5a6b1cce3f0676560227817f0b9b4b00420080
parente9f97d5876122a1fbeb822d957b8f12fe7edbd64 (diff)
downloadqtlocation-mapboxgl-f66d98095e6ab682f06460e3aac0268ee6db341b.tar.gz
Fix tests (by fixing pre-harfbuzz shaping)
-rw-r--r--src/mbgl/layout/symbol_layout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/layout/symbol_layout.cpp b/src/mbgl/layout/symbol_layout.cpp
index d8aa913307..ed75d1d11e 100644
--- a/src/mbgl/layout/symbol_layout.cpp
+++ b/src/mbgl/layout/symbol_layout.cpp
@@ -224,7 +224,7 @@ void SymbolLayout::prepare(uintptr_t tileUID) {
PositionedIcon shapedIcon;
GlyphPositions face;
- util::exclusive<GlyphSet> glyphSet = glyphAtlas.getLocalGlyphSet(*feature.localFontID);
+ util::exclusive<GlyphSet> glyphSet = feature.localFontID ? glyphAtlas.getLocalGlyphSet(*feature.localFontID) : glyphAtlas.getGlyphSet(layout.get<TextFont>());
// if feature has text, shape the text
if (feature.text) {