summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-03-22 14:06:15 +0200
committerTor Lillqvist <tml@collabora.com>2016-03-22 14:06:15 +0200
commit6a215542794b71acc2a76984f2ab485876825c34 (patch)
tree78143f1573384773671f48639348d0c1b8eb88f6 /include
parenta21435bb8199e56b40289c2d03e56e8e3614523b (diff)
Some more sanity asserts can't hurt
Change-Id: I9b2f70ea98968aa98498cb754c2ebe494b6ecda7
Diffstat (limited to 'include')
-rw-r--r--include/vcl/bmpacc.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/bmpacc.hxx b/include/vcl/bmpacc.hxx
index ebc00c75c4c4..662f416d022c 100644
--- a/include/vcl/bmpacc.hxx
+++ b/include/vcl/bmpacc.hxx
@@ -376,7 +376,9 @@ inline Scanline BitmapReadAccess::GetScanline(long nY) const
inline BitmapColor BitmapReadAccess::GetPixel(long nY, long nX) const
{
assert(mpBuffer && mpScanBuf && "Access is not valid!");
+ assert(nX >= 0 && "x-coordinate out of range!");
assert(nX < mpBuffer->mnWidth && "x-coordinate out of range!");
+ assert(nY >= 0 && "y-coordinate out of range!");
assert(nY < mpBuffer->mnHeight && "y-coordinate out of range!");
return mFncGetPixel(mpScanBuf[nY], nX, maColorMask );