From 193f333154d8083e525e2f29e90598fcdbe41408 Mon Sep 17 00:00:00 2001 From: kramm Date: Sat, 20 Oct 2001 19:36:49 +0000 Subject: [PATCH 1/1] fixed a bug. (SWFFont now strdups it's font name) --- pdf2swf/swfoutput.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pdf2swf/swfoutput.cc b/pdf2swf/swfoutput.cc index 074f28b..46f563a 100644 --- a/pdf2swf/swfoutput.cc +++ b/pdf2swf/swfoutput.cc @@ -206,8 +206,10 @@ void drawchar(struct swfoutput*obj, SWFFont*font, char*character, swfmatrix*m) T1_OUTLINE*outline = font->getOutline(character); char* charname = character; - if(!outline) + if(!outline) { + logf("Didn't find %s in current charset", character); return; + } swfmatrix m2=*m; m2.m11/=100; @@ -251,7 +253,7 @@ SWFFont::SWFFont(char*name, int id, char*filename) T1_LoadFont(id); this->name = strdup(T1_GetFontFileName(id)); - this->fontid = name; + this->fontid = strdup(name); this->t1id = id; char**a= T1_GetAllCharNames(id); -- 1.7.10.4