(OTF_check_features): If gsubp is zero, check gpos
[m17n/libotf.git] / 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;
                }
            }