From: handa Date: Fri, 3 Sep 2004 12:28:51 +0000 (+0000) Subject: (GSTRING_INSERT): Fix size of reallocating X-Git-Tag: REL-0-9-5~113 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9b28ef2ef05d7b3be2d00acc0a17ae62b4a9ae1;p=m17n%2Flibotf.git (GSTRING_INSERT): Fix size of reallocating memory. (lookup_gpos): For LooupType 5, fix finding a base/ligature glyph. --- diff --git a/src/otfdrive.c b/src/otfdrive.c index 975e969..c23ac74 100644 --- a/src/otfdrive.c +++ b/src/otfdrive.c @@ -905,7 +905,9 @@ lookup_gpos (OTF_LookupList *lookup_list, unsigned lookup_list_index, num_class[j] = 0; for (ligg = g - 1; - ligg >= gstring->glyphs && IGNORED_GLYPH (ligg, flag); + (ligg >= gstring->glyphs + && (IGNORED_GLYPH (ligg, flag) + || ligg->GlyphClass >= OTF_GlyphClassLigature)); ligg--) if (ligg->positioning_type == 5 && ligg->MarkAttachClass < mark_lig1->ClassCount)