From d3637edb248162970e202e9d0671540274192844 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 10 May 2012 10:51:38 +0200 Subject: [PATCH] [Indic] Don't return for long syllables. Just not sort. --- src/hb-ot-shape-complex-indic.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index 9868b5e..174e3a9 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -363,11 +363,9 @@ initial_reordering_consonant_syllable (const hb_ot_map_t *map, hb_buffer_t *buff info[i].indic_position() = info[i - 1].indic_position(); /* We do bubble-sort, skip malicious clusters attempts */ - if (end - start > 20) - return; - /* Sit tight, rock 'n roll! */ - hb_bubble_sort (info + start, end - start, compare_indic_order); + if (end - start < 20) + hb_bubble_sort (info + start, end - start, compare_indic_order); /* Setup masks now */ -- 2.7.4