From f5fc42d1a3f5a637f00a2316af960dc32371cf48 Mon Sep 17 00:00:00 2001 From: kramm Date: Fri, 26 Sep 2008 18:03:41 +0000 Subject: [PATCH] handle font tags without characters more gracefully --- lib/modules/swftext.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c index dcea6be..ddfd761 100644 --- a/lib/modules/swftext.c +++ b/lib/modules/swftext.c @@ -310,7 +310,8 @@ int swf_FontExtract_DefineFont2(int id, SWFFONT * font, TAG * tag) swf_GetSimpleShape(tag, &(font->glyph[t].shape)); } - swf_SetTagPos(tag, offset[glyphcount]+offset_start); + if(glyphcount) + swf_SetTagPos(tag, offset[glyphcount]+offset_start); free(offset); -- 1.7.10.4