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 (parent:
eba7ba1
)
small logging changes
author
kramm
<kramm>
Wed, 7 Dec 2005 19:41:05 +0000
(19:41 +0000)
committer
kramm
<kramm>
Wed, 7 Dec 2005 19:41:05 +0000
(19:41 +0000)
pdf2swf/SWFOutputDev.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/SWFOutputDev.cc
b/pdf2swf/SWFOutputDev.cc
index
fd9cdc0
..
ca64cb6
100644
(file)
--- a/
pdf2swf/SWFOutputDev.cc
+++ b/
pdf2swf/SWFOutputDev.cc
@@
-1155,7
+1155,7
@@
int getGfxCharID(gfxfont_t*font, int charnr, char *charname, int u)
int t;
for(t=0;t<font->num_glyphs;t++) {
if(font->glyphs[t].name && !strcmp(font->glyphs[t].name,uniname)) {
int t;
for(t=0;t<font->num_glyphs;t++) {
if(font->glyphs[t].name && !strcmp(font->glyphs[t].name,uniname)) {
- msg("<debug> Char [%d,>%s<,%d] maps to %d\n", charnr, uniname, u, t);
+ msg("<debug> Char [%d,%s,>%d(%s)<] maps to %d\n", charnr, charname, u, uniname, t);
return t;
}
}
return t;
}
}
@@
-1163,7
+1163,7
@@
int getGfxCharID(gfxfont_t*font, int charnr, char *charname, int u)
we can find the capitalized version */
for(t=0;t<font->num_glyphs;t++) {
if(font->glyphs[t].name && !strcasecmp(font->glyphs[t].name,uniname)) {
we can find the capitalized version */
for(t=0;t<font->num_glyphs;t++) {
if(font->glyphs[t].name && !strcasecmp(font->glyphs[t].name,uniname)) {
- msg("<debug> Char [%d,>>%s<<,%d] maps to %d\n", charnr, uniname, u, t);
+ msg("<debug> Char [%d,%s,>>%d(%s)<<] maps to %d\n", charnr, charname, u, uniname, t);
return t;
}
}
return t;
}
}
@@
-2132,6
+2132,7
@@
void SWFOutputDev::updateFont(GfxState *state)
if(fileName && del)
unlinkfont(fileName);
if(fileName && del)
unlinkfont(fileName);
+
if(fileName)
free(fileName);
free(fontid);
if(fileName)
free(fileName);
free(fontid);