diff options
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/bmpacc.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/vcl/bmpacc.hxx b/include/vcl/bmpacc.hxx index bc43dbf175a9..f2f139921b58 100644 --- a/include/vcl/bmpacc.hxx +++ b/include/vcl/bmpacc.hxx @@ -348,14 +348,14 @@ inline Scanline BitmapReadAccess::GetBuffer() const inline Scanline BitmapReadAccess::GetScanline( long nY ) const { - assert(mpBuffer && "Access is not valid!"); + assert(mpBuffer && mpScanBuf && "Access is not valid!"); assert(nY < mpBuffer->mnHeight && "y-coordinate out of range!"); - return( mpBuffer ? mpScanBuf[ nY ] : NULL ); + return mpScanBuf[nY]; } inline BitmapColor BitmapReadAccess::GetPixel( long nY, long nX ) const { - assert(mpBuffer && "Access is not valid!"); + assert(mpBuffer && mpScanBuf && "Access is not valid!"); assert(nX < mpBuffer->mnWidth && "x-coordinate out of range!"); assert(nY < mpBuffer->mnHeight && "y-coordinate out of range!"); return mFncGetPixel( mpScanBuf[ nY ], nX, maColorMask ); |