X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=pdf2swf%2Fxpdf%2FGfxFont.h;h=df1e00ce15daac46668f81afe384f040495e0c65;hp=62dfd0881ad24b9842f61e3cdf52d221ebb95825;hb=ff0eecc9f0cbe4ecdaac00b5b04660777ad7c630;hpb=c7432833fe3a6469d63fad135151a92e12877b94 diff --git a/pdf2swf/xpdf/GfxFont.h b/pdf2swf/xpdf/GfxFont.h index 62dfd08..df1e00c 100644 --- a/pdf2swf/xpdf/GfxFont.h +++ b/pdf2swf/xpdf/GfxFont.h @@ -207,7 +207,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; }