diff --git a/modules/skparagraph/src/TextLine.cpp b/modules/skparagraph/src/TextLine.cpp index d2d7fe4d7630..8c884f42a944 100644 --- a/modules/skparagraph/src/TextLine.cpp +++ b/modules/skparagraph/src/TextLine.cpp @@ -154,7 +154,7 @@ TextLine::TextLine(ParagraphImpl* owner, } // TODO: This is the fix for flutter. Must be removed... - for (auto cluster = &start; cluster != &end; ++cluster) { + for (auto cluster = &start; cluster <= &end; ++cluster) { if (!cluster->run().isPlaceholder()) { fShift += cluster->getHalfLetterSpacing(); break;