Fix left-to-right positioning. Reported by Peter Hunter.
authorBehdad Esfahbod <behdad@gnome.org>
Mon, 29 Sep 2008 22:28:47 +0000 (22:28 +0000)
committerBehdad Esfahbod <behdad@src.gnome.org>
Mon, 29 Sep 2008 22:28:47 +0000 (22:28 +0000)
2008-09-29  Behdad Esfahbod  <behdad@gnome.org>

        * pango/opentype/harfbuzz-gpos.c (Position_CursiveChain):
        Fix left-to-right positioning.  Reported by Peter Hunter.

src/harfbuzz-gpos.c

index 52fb4cd..2a9cbf6 100644 (file)
@@ -5962,7 +5962,7 @@ static HB_Error  Position_CursiveChain ( HB_Buffer     buffer )
   HB_Position positions = buffer->positions;
 
   /* First handle all left-to-right connections */
-  for (j = 0; j < buffer->in_length; j--)
+  for (j = 0; j < buffer->in_length; j++)
   {
     if (positions[j].cursive_chain > 0)
       positions[j].y_pos += positions[j - positions[j].cursive_chain].y_pos;