Commit b0b9798c authored by Albert Astals Cid's avatar Albert Astals Cid

Fix clip test for fonts

Fixes bug 20950
I really don't remember why i put that -1 maybe i got mislead by SplashClip::testRect
having a +1, but the idea of the +1 is correct because it's ints vs floats
parent 5c08f57a
......@@ -221,8 +221,8 @@ GBool SplashFTFont::makeGlyph(int c, int xFrac, int yFrac,
*clipRes = clip->testRect(x0 - bitmap->x,
y0 - bitmap->y,
x0 - bitmap->x + bitmap->w - 1,
y0 - bitmap->y + bitmap->h - 1);
x0 - bitmap->x + bitmap->w,
y0 - bitmap->y + bitmap->h);
if (*clipRes == splashClipAllOutside) {
bitmap->freeData = gFalse;
return gTrue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment