Index: third_party/harfbuzz/src/harfbuzz-shaper.cpp |
diff --git a/third_party/harfbuzz/src/harfbuzz-shaper.cpp b/third_party/harfbuzz/src/harfbuzz-shaper.cpp |
index 36b92822e9363d00e3a766a5e9b258f9b2498269..3628c88cbbde7583fc2b656bd33348a45a7c0fb0 100644 |
--- a/third_party/harfbuzz/src/harfbuzz-shaper.cpp |
+++ b/third_party/harfbuzz/src/harfbuzz-shaper.cpp |
@@ -433,7 +433,7 @@ void HB_HeuristicSetGlyphAttributes(HB_ShaperItem *item) |
// ### zeroWidth and justification are missing here!!!!! |
- assert(item->num_glyphs <= length); |
+ assert(length <= item->num_glyphs); |
// qDebug("QScriptEngine::heuristicSetGlyphAttributes, num_glyphs=%d", item->num_glyphs); |
HB_GlyphAttributes *attributes = item->attributes; |
@@ -451,7 +451,6 @@ void HB_HeuristicSetGlyphAttributes(HB_ShaperItem *item) |
} |
++glyph_pos; |
} |
- assert(glyph_pos == item->num_glyphs); |
// first char in a run is never (treated as) a mark |
int cStart = 0; |