git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added CFLAGS to compiler.
[swftools.git]
/
pdf2swf
/
xpdf
/
FontEncoding.h
diff --git
a/pdf2swf/xpdf/FontEncoding.h
b/pdf2swf/xpdf/FontEncoding.h
index
7c81153
..
10e6fce
100644
(file)
--- 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 <code>.
void addChar(int code, char *name);
// Return the character name associated with <code>.
- char *getCharName(int code) { return encoding[code]; }
+ char *getCharName(int code) { return code>=size?0:encoding[code]; }
// Return the code associated with <name>.
int getCharCode(char *name);
// Return the code associated with <name>.
int getCharCode(char *name);