git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
made error reporting less verbose
[swftools.git]
/
pdf2swf
/
xpdf
/
GfxFont.h
diff --git
a/pdf2swf/xpdf/GfxFont.h
b/pdf2swf/xpdf/GfxFont.h
index
62dfd08
..
df1e00c
100644
(file)
--- a/
pdf2swf/xpdf/GfxFont.h
+++ b/
pdf2swf/xpdf/GfxFont.h
@@
-207,7
+207,7
@@
public:
CharCodeToUnicode *getToUnicode();
// Return the character name associated with <code>.
CharCodeToUnicode *getToUnicode();
// Return the character name associated with <code>.
- 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; }
// Returns true if the PDF font specified an encoding.
GBool getHasEncoding() { return hasEncoding; }