Fix incorrect shader selection for text labels with inline images (#4082)

This commit is contained in:
Taku Fukada
2026-02-20 05:34:43 +09:00
committed by GitHub
parent 3fc501dfdf
commit 5727f04c43
3 changed files with 60 additions and 1 deletions

View File

@@ -744,7 +744,7 @@ void SymbolLayout::prepareSymbols(const GlyphMap& glyphMap,
// if either shapedText or icon position is present, add the feature
const Shaping& defaultShaping = getDefaultHorizontalShaping(shapedTextOrientations);
iconsInText = defaultShaping && defaultShaping.iconsInText;
iconsInText |= defaultShaping && defaultShaping.iconsInText;
if (defaultShaping || shapedIcon) {
addFeature(std::distance(features.begin(), it),
feature,