fixed segv bug in drawChar()
authorkramm <kramm>
Sat, 10 Sep 2005 12:30:55 +0000 (12:30 +0000)
committerkramm <kramm>
Sat, 10 Sep 2005 12:30:55 +0000 (12:30 +0000)
pdf2swf/SWFOutputDev.cc

index ca34137..98a6db2 100644 (file)
@@ -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("<warning> 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);