[poppler] splash/Splash.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Mar 22 09:30:51 PDT 2014


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

New commits:
commit 3535d658095ffa49ef8615d69843afa9c5ada061
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Mar 22 17:29:46 2014 +0100

    Make the test rect go to xMax, yMax not xMax-1,yMax-1
    
    I don't understand why the -1 is there and removing
    it actually fixes bug #76387

diff --git a/splash/Splash.cc b/splash/Splash.cc
index 6d4dd26..d9983b0 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -11,7 +11,7 @@
 // All changes made under the Poppler project to this file are licensed
 // under GPL version 2 or later
 //
-// Copyright (C) 2005-2013 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2005-2014 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2005 Marco Pesenti Gritti <mpg at redhat.com>
 // Copyright (C) 2010-2014 Thomas Freitag <Thomas.Freitag at alfa.de>
 // Copyright (C) 2010 Christian Feuersänger <cfeuersaenger at googlemail.com>
@@ -3826,7 +3826,7 @@ SplashError Splash::arbitraryTransformImage(SplashImageSource src, void *srcData
       yMax = t1;
     }
   }
-  clipRes = state->clip->testRect(xMin, yMin, xMax - 1, yMax - 1);
+  clipRes = state->clip->testRect(xMin, yMin, xMax, yMax);
   opClipRes = clipRes;
   if (clipRes == splashClipAllOutside) {
     return splashOk;


More information about the poppler mailing list