diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-12-14 02:38:43 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-12-14 02:40:11 +0000 |
commit | 63feac2a3264ead8f52148644b14078a4be5a2b9 (patch) | |
tree | 2f9b5d9125bfe77dac3c60be4a64105ad8dc3228 /vcl/win | |
parent | 121b7b880c4d17c1ce320ad6b1c560577c9953ed (diff) |
Fix drawTransformedBitmap for NULL pAlphaBitmap.
Change-Id: Iff1a0eb8e4b112b874813023551a797320ac0ad5
Diffstat (limited to 'vcl/win')
-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); |