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:
f5fc42d
)
fix for segfault in case we couldn't extract a glyph outline
author
kramm
<kramm>
Fri, 26 Sep 2008 18:03:53 +0000
(18:03 +0000)
committer
kramm
<kramm>
Fri, 26 Sep 2008 18:03:53 +0000
(18:03 +0000)
lib/pdf/BitmapOutputDev.cc
patch
|
blob
|
history
diff --git
a/lib/pdf/BitmapOutputDev.cc
b/lib/pdf/BitmapOutputDev.cc
index
4b2a334
..
5292f1a
100644
(file)
--- a/
lib/pdf/BitmapOutputDev.cc
+++ b/
lib/pdf/BitmapOutputDev.cc
@@
-1264,6
+1264,11
@@
void BitmapOutputDev::drawChar(GfxState *state, double x, double y,
/* calculate the bbox of this character */
int x1 = (int)x, x2 = (int)x+1, y1 = (int)y, y2 = (int)y+1;
SplashPath*path = clip0dev->getCurrentFont()->getGlyphPath(code);
+ if(!path) {
+ if(code)
+ msg("<error> couldn't create outline for char %d", code);
+ return;
+ }
int t;
for(t=0;t<path->getLength();t++) {
double xx,yy;