summaryrefslogtreecommitdiff
path: root/splash
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2014-03-22 17:29:46 +0100
committerAlbert Astals Cid <aacid@kde.org>2014-03-22 17:29:46 +0100
commit3535d658095ffa49ef8615d69843afa9c5ada061 (patch)
treea56bc6a25b81b18695a982d8bc7b45c37e3e421d /splash
parent1e93c3f2d1c86edd40ca283ed422089f64886d04 (diff)
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
Diffstat (limited to 'splash')
-rw-r--r--splash/Splash.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/splash/Splash.cc b/splash/Splash.cc
index 6d4dd263..d9983b07 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@kde.org>
+// Copyright (C) 2005-2014 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2005 Marco Pesenti Gritti <mpg@redhat.com>
// Copyright (C) 2010-2014 Thomas Freitag <Thomas.Freitag@alfa.de>
// Copyright (C) 2010 Christian Feuersänger <cfeuersaenger@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;