summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-03-07 17:55:09 +0200
committerTor Lillqvist <tml@collabora.com>2014-03-10 17:35:31 +0200
commit81932318df11a9f389ac1dcf7650917a622d1889 (patch)
tree1861e45d723ed547942b6cd72517edc68db8ae0a /vcl
parentaeda478a02523cec146f6af69710f0391061db56 (diff)
More informative warnings
Change-Id: Idd75998f9e5e070fdaff21c6bd78c57a97007794
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/alpha.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/gdi/alpha.cxx b/vcl/source/gdi/alpha.cxx
index 7e1721e3dd55..32c42d0d0742 100644
--- a/vcl/source/gdi/alpha.cxx
+++ b/vcl/source/gdi/alpha.cxx
@@ -66,7 +66,8 @@ const Bitmap& AlphaMask::ImplGetBitmap() const
void AlphaMask::ImplSetBitmap( const Bitmap& rBitmap )
{
- DBG_ASSERT( ( 8 == rBitmap.GetBitCount() ) && rBitmap.HasGreyPalette(), "AlphaMask::ImplSetBitmap: invalid bitmap" );
+ SAL_WARN_IF( 8 != rBitmap.GetBitCount(), "vcl.gdi", "Bitmap should be 8bpp, not " << rBitmap.GetBitCount() << "bpp" );
+ SAL_WARN_IF( !rBitmap.HasGreyPalette(), "vcl.gdi", "Bitmap isn't greyscale" );
*(Bitmap*) this = rBitmap;
}