From 5998cd00c83864d76788f1a7ee47f4b429ecc866 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 20 Jul 2022 11:16:32 -0600 Subject: [PATCH] [hebrew] Break out of reordering loop when pattern found --- src/hb-ot-shaper-hebrew.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-ot-shaper-hebrew.cc b/src/hb-ot-shaper-hebrew.cc index bfc7aa91c..e18edd6b3 100644 --- a/src/hb-ot-shaper-hebrew.cc +++ b/src/hb-ot-shaper-hebrew.cc @@ -182,6 +182,7 @@ reorder_marks_hebrew (const hb_ot_shape_plan_t *plan HB_UNUSED, { buffer->merge_clusters (i - 1, i + 1); hb_swap (info[i - 1], info[i]); + break; } }