[Indic] Don't return for long syllables. Just not sort.
This commit is contained in:
parent
dfa0cade7f
commit
d3637edb24
|
@ -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();
|
info[i].indic_position() = info[i - 1].indic_position();
|
||||||
|
|
||||||
/* We do bubble-sort, skip malicious clusters attempts */
|
/* We do bubble-sort, skip malicious clusters attempts */
|
||||||
if (end - start > 20)
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* Sit tight, rock 'n roll! */
|
/* 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 */
|
/* Setup masks now */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue