git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small fixes
[swftools.git]
/
lib
/
pdf
/
BitmapOutputDev.cc
diff --git
a/lib/pdf/BitmapOutputDev.cc
b/lib/pdf/BitmapOutputDev.cc
index
ac5744b
..
5831a59
100644
(file)
--- a/
lib/pdf/BitmapOutputDev.cc
+++ b/
lib/pdf/BitmapOutputDev.cc
@@
-1412,7
+1412,9
@@
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;
/* 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);
+ SplashFont*font = clip0dev->getCurrentFont();
+ SplashPath*path = font?font->getGlyphPath(code):NULL;
+
if(!path) {
if(code)
msg("<error> couldn't create outline for char %d", code);
if(!path) {
if(code)
msg("<error> couldn't create outline for char %d", code);