diff options
-rw-r--r-- | vcl/win/gdi/gdiimpl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/win/gdi/gdiimpl.cxx b/vcl/win/gdi/gdiimpl.cxx index 2d86dbeed08b..dc16217155bb 100644 --- a/vcl/win/gdi/gdiimpl.cxx +++ b/vcl/win/gdi/gdiimpl.cxx @@ -2310,7 +2310,7 @@ bool WinSalGraphicsImpl::drawTransformedBitmap( const SalBitmap* pAlphaBitmap) { assert(dynamic_cast<const WinSalBitmap*>(&rSourceBitmap)); - assert(dynamic_cast<const WinSalBitmap*>(pAlphaBitmap)); + assert(!pAlphaBitmap || dynamic_cast<const WinSalBitmap*>(pAlphaBitmap)); const WinSalBitmap& rSalBitmap = static_cast< const WinSalBitmap& >(rSourceBitmap); const WinSalBitmap* pSalAlpha = static_cast< const WinSalBitmap* >(pAlphaBitmap); |