int width8 = (width+7)/8;
int height = clip0bitmap->getHeight();
- if(fixBBox(&x1,&y1,&x2,&y2,width,height)) {
+ if(!fixBBox(&x1,&y1,&x2,&y2,width,height)) {
/* area is outside or null */
return gFalse;
}
/* 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);