From b3cb08e1a951aa2bb80d9c0df0a0e6c1d715ca64 Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 29 Oct 2001 13:41:01 +0000 Subject: [PATCH] don't draw characters which don't have a name --- pdf2swf/SWFOutputDev.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc index 55b6028..a3f3d15 100644 --- a/pdf2swf/SWFOutputDev.cc +++ b/pdf2swf/SWFOutputDev.cc @@ -590,7 +590,10 @@ void SWFOutputDev::drawChar(GfxState *state, double x, double y, double dx, doub y1 = y; state->transform(x, y, &x1, &y1); - swfoutput_drawchar(&output, x1, y1, enc->getCharName(c)); + if(enc->getCharName(c)) + swfoutput_drawchar(&output, x1, y1, enc->getCharName(c)); + else + logf(" couldn't get name for character %02x from Encoding", c); } } -- 1.7.10.4