[poppler] Branch 'poppler-0.10' - splash/SplashFTFont.cc

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


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

New commits:
commit 5e231c384c0cba9040ab3a545ac699003ff4c2c0
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