From b9b2c8cf73300427c3becd50dca9d5579c6a5cfa Mon Sep 17 00:00:00 2001 From: kramm Date: Sat, 10 Sep 2005 12:30:55 +0000 Subject: [PATCH] fixed segv bug in drawChar() --- pdf2swf/SWFOutputDev.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc index ca34137..98a6db2 100644 --- a/pdf2swf/SWFOutputDev.cc +++ b/pdf2swf/SWFOutputDev.cc @@ -1257,7 +1257,7 @@ void SWFOutputDev::drawChar(GfxState *state, double x, double y, } } - if(charid<0) { + if(charid<0 && name) { if(strcasecmp(name, "space")) { msg(" Didn't find character '%s' (c=%d,u=%d) in current charset (%s, %d characters)", FIXNULL(name),c, u, FIXNULL((char*)current_font_id), current_gfxfont->num_glyphs); -- 1.7.10.4