(lookup_gsub): Increment `gidx' correctly in the
authorhanda <handa>
Fri, 13 May 2005 07:18:49 +0000 (07:18 +0000)
committerhanda <handa>
Fri, 13 May 2005 07:18:49 +0000 (07:18 +0000)
case of GSUB_Ligature1.

src/otfdrive.c

index 2449faa..51053b3 100644 (file)
@@ -500,7 +500,7 @@ lookup_gsub (OTF *otf, OTF_LookupList *lookup_list, unsigned lookup_list_index,
                    continue;
                  gstring_subst (otf, gstring, gidx, gidx + 1 + n, flag,
                                 &lig->LigGlyph, 1);
-                 gidx += lig->CompCount;
+                 gidx++;
                  break;
                }
            }