From: handa Date: Fri, 13 May 2005 07:18:49 +0000 (+0000) Subject: (lookup_gsub): Increment `gidx' correctly in the X-Git-Tag: REL-0-9-5~74 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=b1b1e3f9e9504320c470d87ad6ed104fad808df4;p=m17n%2Flibotf.git (lookup_gsub): Increment `gidx' correctly in the case of GSUB_Ligature1. --- diff --git a/src/otfdrive.c b/src/otfdrive.c index 2449faa..51053b3 100644 --- a/src/otfdrive.c +++ b/src/otfdrive.c @@ -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; } }