Index: third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic.cc |
diff --git a/third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic.cc b/third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic.cc |
index 880aa918f895d0362b5614a1df89713309b58c46..21256dec5179426d7e040880c4cf1dcee04f01f3 100644 |
--- a/third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic.cc |
+++ b/third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic.cc |
@@ -1246,7 +1246,7 @@ insert_dotted_circles (const hb_ot_shape_plan_t *plan HB_UNUSED, |
/* TODO Set glyph_props? */ |
/* Insert dottedcircle after possible Repha. */ |
- while (buffer->idx < buffer->len && |
+ while (buffer->idx < buffer->len && !buffer->in_error && |
last_syllable == buffer->cur().syllable() && |
buffer->cur().indic_category() == OT_Repha) |
buffer->next_glyph (); |