diff options
author | Albert Astals Cid <aacid@kde.org> | 2009-03-30 23:26:39 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2009-03-30 23:28:16 +0200 |
commit | 5e231c384c0cba9040ab3a545ac699003ff4c2c0 (patch) | |
tree | fb14829ee07298e2dc8e4d388680f460e32958ac | |
parent | 347a6e955f6ba403451e09cfe03c79cf7bcc66c8 (diff) |
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
-rw-r--r-- | splash/SplashFTFont.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/splash/SplashFTFont.cc b/splash/SplashFTFont.cc index 6ae92bf7..0039feb6 100644 --- a/splash/SplashFTFont.cc +++ b/splash/SplashFTFont.cc @@ -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; |