From 1267403bc893407a1031042776675244afaae379 Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 19 Nov 2001 15:36:12 +0000 Subject: [PATCH 1/1] copy with too big character indicies in getCharName. --- pdf2swf/xpdf/FontEncoding.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf2swf/xpdf/FontEncoding.h b/pdf2swf/xpdf/FontEncoding.h index 7c81153..10e6fce 100644 --- a/pdf2swf/xpdf/FontEncoding.h +++ b/pdf2swf/xpdf/FontEncoding.h @@ -43,7 +43,7 @@ public: void addChar(int code, char *name); // Return the character name associated with . - char *getCharName(int code) { return encoding[code]; } + char *getCharName(int code) { return code>=size?0:encoding[code]; } // Return the code associated with . int getCharCode(char *name); -- 1.7.10.4