diff options
author | Albert Astals Cid <aacid@kde.org> | 2013-03-04 20:13:36 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2013-03-04 20:13:36 +0100 |
commit | c86062f982d6eb08cb27b654b6317c71ab77c692 (patch) | |
tree | db6a18b5be8ddfe18ebe891826506e91f5d4eecf /splash | |
parent | 677e5b265a0d39a988f65d642a4f964a279fad28 (diff) | |
parent | 4e142b60790638e4495b4fd6551702470cf4c38f (diff) |
Merge remote-tracking branch 'origin/poppler-0.22'
Diffstat (limited to 'splash')
-rw-r--r-- | splash/Splash.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/splash/Splash.cc b/splash/Splash.cc index bc8c62d7..34bea6a1 100644 --- a/splash/Splash.cc +++ b/splash/Splash.cc @@ -3958,6 +3958,8 @@ SplashError Splash::arbitraryTransformImage(SplashImageSource src, void *srcData xa = imgCoordMungeLower(section[i].xa0 + ((SplashCoord)y + 0.5 - section[i].ya0) * section[i].dxdya); + if (unlikely(xa < 0)) + xa = 0; xb = imgCoordMungeUpper(section[i].xb0 + ((SplashCoord)y + 0.5 - section[i].yb0) * section[i].dxdyb); |