git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed mem leak
[swftools.git]
/
lib
/
pdf
/
GFXOutputDev.cc
diff --git
a/lib/pdf/GFXOutputDev.cc
b/lib/pdf/GFXOutputDev.cc
index
eca4d9f
..
a1ddba9
100644
(file)
--- a/
lib/pdf/GFXOutputDev.cc
+++ b/
lib/pdf/GFXOutputDev.cc
@@
-852,7
+852,7
@@
GFXOutputDev::~GFXOutputDev()
free(this->pages); this->pages = 0;
}
free(this->pages); this->pages = 0;
}
- gfxfontlist_free(this->gfxfontlist);
+ gfxfontlist_free(this->gfxfontlist, 1);
};
GBool GFXOutputDev::upsideDown()
{
};
GBool GFXOutputDev::upsideDown()
{
@@
-965,6
+965,8
@@
void GFXOutputDev::drawChar(GfxState *state, double x, double y,
// check for invisible text -- this is used by Acrobat Capture
if (render == RENDER_INVISIBLE) {
col.a = 0;
// check for invisible text -- this is used by Acrobat Capture
if (render == RENDER_INVISIBLE) {
col.a = 0;
+ if(!config_extrafontdata)
+ return;
}
GfxFont*font = state->getFont();
}
GfxFont*font = state->getFont();
@@
-1547,6
+1549,9
@@
void GFXOutputDev::updateFont(GfxState *state)
}
this->current_fontinfo = this->info->getFont(id);
}
this->current_fontinfo = this->info->getFont(id);
+ if(!this->current_fontinfo) {
+ msg("<error> Internal Error: no fontinfo for font %s\n", id);
+ }
if(!this->current_fontinfo->seen) {
dumpFontInfo("<verbose>", gfxFont);
}
if(!this->current_fontinfo->seen) {
dumpFontInfo("<verbose>", gfxFont);
}
@@
-1554,7
+1559,8
@@
void GFXOutputDev::updateFont(GfxState *state)
gfxfont_t*font = gfxfontlist_findfont(this->gfxfontlist,id);
if(!font) {
font = createGfxFont(gfxFont, current_fontinfo);
gfxfont_t*font = gfxfontlist_findfont(this->gfxfontlist,id);
if(!font) {
font = createGfxFont(gfxFont, current_fontinfo);
- gfxfontlist_addfont(this->gfxfontlist, font);
+ font->id = strdup(id);
+ this->gfxfontlist = gfxfontlist_addfont(this->gfxfontlist, font);
device->addfont(device, font);
}
current_gfxfont = font;
device->addfont(device, font);
}
current_gfxfont = font;