X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fxpdf%2FGfxFont.h;h=edd26e5f784ad1de323e67f98c92332251030935;hb=c4d5808ef13df26e75b659d2019b5d89b16f4539;hp=c67ac29a40a9aa12965eb5ed9cef0138861751c1;hpb=2eb549d27d295e3023f06ce027c0e673430c31ed;p=swftools.git diff --git a/pdf2swf/xpdf/GfxFont.h b/pdf2swf/xpdf/GfxFont.h index c67ac29..edd26e5 100644 --- a/pdf2swf/xpdf/GfxFont.h +++ b/pdf2swf/xpdf/GfxFont.h @@ -198,7 +198,7 @@ public: CharCodeToUnicode *getToUnicode(); // Return the character name associated with . - char *getCharName(int code) { return enc[code]; } + char *getCharName(int code) { return code>=256?0:enc[code]; } // Returns true if the PDF font specified an encoding. GBool getHasEncoding() { return hasEncoding; }