From b1b1e3f9e9504320c470d87ad6ed104fad808df4 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 13 May 2005 07:18:49 +0000 Subject: [PATCH] (lookup_gsub): Increment `gidx' correctly in the case of GSUB_Ligature1. --- src/otfdrive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 1.7.10.4