[Indic] Fix reph inhibition logic
authorBehdad Esfahbod <behdad@behdad.org>
Sun, 31 Jul 2011 18:57:59 +0000 (14:57 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Sun, 31 Jul 2011 18:57:59 +0000 (14:57 -0400)
src/hb-ot-shape-complex-indic.cc

index ba28aa5..d801cec 100644 (file)
@@ -513,10 +513,10 @@ found_consonant_syllable (const hb_ot_map_t *map, hb_buffer_t *buffer, hb_mask_t
 
 
   /* Handle beginning Ra */
-  if (start + 2 <= end &&
+  if (start + 3 <= end &&
       info[start].indic_category() == OT_Ra &&
       info[start + 1].indic_category() == OT_H &&
-      (start + 2 == end || !is_joiner (info[start])))
+      !is_joiner (info[start + 2]))
    {
     info[start].indic_position() = POS_POST;
     info[start].mask = mask_array[RPHF];