X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswftext.c;h=ddfd76182ba63f48fefd6f4cb9dec4d81bfc74da;hb=f5fc42d1a3f5a637f00a2316af960dc32371cf48;hp=dcea6beb2226d5244d3969faf3b086ef33c27425;hpb=7bcaebde547799351834abe2e4fab63bfa815b50;p=swftools.git 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);