From: handa Date: Mon, 9 Aug 2004 00:15:04 +0000 (+0000) Subject: (update_seq_area): Call OTF_drive_gdef only X-Git-Tag: REL-0-9-1~3 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d990acc4232e915ae1ee66baa65d05b1279120f2;p=m17n%2Flibotf.git (update_seq_area): Call OTF_drive_gdef only when otf is not NULL. --- diff --git a/example/otfview.c b/example/otfview.c index 83f7c13..57fcd7d 100644 --- a/example/otfview.c +++ b/example/otfview.c @@ -301,7 +301,6 @@ update_seq_area () memset (gstring.glyphs, 0, sizeof (OTF_Glyph) * len); for (i = 0; i < len; i++) gstring.glyphs[i].c = gstring.glyphs[i].glyph_id = glyph_rec.glyphs[i]; - OTF_drive_gdef (otf, &gstring); XFillRectangle (display, seq_pixmap, gc, 0, 0, render_width, render_height); XDrawLine (display, seq_pixmap, gc_set, 0, glyph_y, render_width, glyph_y); @@ -309,6 +308,7 @@ update_seq_area () { char *str; + OTF_drive_gdef (otf, &gstring); if (otf->gsub) { str = get_features (&otf->gsub->FeatureList, &gsub);