diff options
Diffstat (limited to 'src/mbgl/layout/symbol_instance.cpp')
-rw-r--r-- | src/mbgl/layout/symbol_instance.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mbgl/layout/symbol_instance.cpp b/src/mbgl/layout/symbol_instance.cpp index 6e152349ca..c7f6269d4b 100644 --- a/src/mbgl/layout/symbol_instance.cpp +++ b/src/mbgl/layout/symbol_instance.cpp @@ -12,6 +12,8 @@ SymbolInstance::SymbolInstance(Anchor& anchor_, const SymbolLayoutProperties::Evaluated& layout, const float layoutTextSize, const uint32_t index_, + const bool hasText_, + const bool hasIcon_, const float textBoxScale, const float textPadding, const SymbolPlacementType textPlacement, @@ -27,8 +29,10 @@ SymbolInstance::SymbolInstance(Anchor& anchor_, anchor(anchor_), line(line_), index(index_), - hasText(shapedTextOrientations.first || shapedTextOrientations.second), - hasIcon(shapedIcon), + hasText(hasText_), + hasIcon(hasIcon_), + hasTextData(shapedTextOrientations.first || shapedTextOrientations.second), + hasIconData(shapedIcon), // Create the collision features that will be used to check whether this symbol instance can be placed textCollisionFeature(line_, anchor, shapedTextOrientations.first, textBoxScale, textPadding, textPlacement, indexedFeature, overscaling), |