From d990acc4232e915ae1ee66baa65d05b1279120f2 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 9 Aug 2004 00:15:04 +0000 Subject: [PATCH] (update_seq_area): Call OTF_drive_gdef only when otf is not NULL. --- example/otfview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 1.7.10.4