[poppler] splash/SplashFTFont.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Mar 30 14:27:56 PDT 2009


 splash/SplashFTFont.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b0b9798c85c7c6d6f336f73135a98974897b9f60
Author: Albert Astals Cid <aacid at kde.org>
Date:   Mon Mar 30 23:26:39 2009 +0200

    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

diff --git a/splash/SplashFTFont.cc b/splash/SplashFTFont.cc
index 6ae92bf..0039feb 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;


More information about the poppler mailing list