diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-11-03 15:04:49 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-11-03 15:04:49 +0000 |
commit | 024d8075bacc4e81ab5e3818b19e6f2524fc4972 (patch) | |
tree | d5e5df34a2f90c5f21364a39b09cdb770c47601a /vcl | |
parent | c86e07859edee1b80ac498aed123afb08efb195c (diff) |
INTEGRATION: CWS jmf3 (1.4.210); FILE MERGED
2004/10/08 14:01:04 ka 1.4.210.1: check for valid bitmap in ::ImplSetBitmap
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/alpha.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/gdi/alpha.cxx b/vcl/source/gdi/alpha.cxx index 258c2fde9ef5..f76f21304de9 100644 --- a/vcl/source/gdi/alpha.cxx +++ b/vcl/source/gdi/alpha.cxx @@ -2,9 +2,9 @@ * * $RCSfile: alpha.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: vg $ $Date: 2004-01-06 13:26:28 $ + * last change: $Author: rt $ $Date: 2004-11-03 16:04:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -134,6 +134,7 @@ const Bitmap& AlphaMask::ImplGetBitmap() const void AlphaMask::ImplSetBitmap( const Bitmap& rBitmap ) { + DBG_ASSERT( ( 8 == rBitmap.GetBitCount() ) && rBitmap.HasGreyPalette(), "AlphaMask::ImplSetBitmap: invalid bitmap" ); *(Bitmap*) this = rBitmap; } |