vcl/source/outdev/bitmap.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 29df1afa1f439bf44a6be1b04ec0190e8f40abe2 Author: Chris Sherlock <chris.sherloc...@gmail.com> AuthorDate: Sun Sep 24 00:29:02 2023 +1000 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Fri Dec 8 11:49:31 2023 +0100 tdf#43157 vcl: remove DBG_ASSERT() from DrawDeviceAlphaBitmapSlowPath() Change-Id: I6c120eb2bb8999276103f50bf3679366b6ee86ae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157189 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx index c6855909d312..86ac23137562 100644 --- a/vcl/source/outdev/bitmap.cxx +++ b/vcl/source/outdev/bitmap.cxx @@ -653,8 +653,8 @@ void OutputDevice::DrawDeviceAlphaBitmapSlowPath(const Bitmap& rBitmap, BitmapScopedReadAccess pBitmapReadAccess(rBitmap); BitmapScopedReadAccess pAlphaReadAccess(rAlpha); - DBG_ASSERT( pAlphaReadAccess->GetScanlineFormat() == ScanlineFormat::N8BitPal, - "OutputDevice::ImplDrawAlpha(): non-8bit alpha no longer supported!" ); + SAL_WARN_IF(pAlphaReadAccess->GetScanlineFormat() != ScanlineFormat::N8BitPal, "vcl.gdi", "non-8bit alpha no longer supported!"); + assert(pAlphaReadAccess->GetScanlineFormat() == ScanlineFormat::N8BitPal); // #i38887# reading from screen may sometimes fail if (aBmp.ImplGetSalBitmap())