git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2f2c123
)
copy with too big character indicies in getCharName.
author
kramm
<kramm>
Mon, 19 Nov 2001 15:36:12 +0000
(15:36 +0000)
committer
kramm
<kramm>
Mon, 19 Nov 2001 15:36:12 +0000
(15:36 +0000)
pdf2swf/xpdf/FontEncoding.h
patch
|
blob
|
history
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);