[Libreoffice-commits] core.git: vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Mar 19 20:05:25 UTC 2021
vcl/source/helper/canvastools.cxx | 1 -
1 file changed, 1 deletion(-)
New commits:
commit 2f30b6af9ed727a967947b870b56689046f4a745
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Mar 19 14:24:39 2021 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Mar 19 21:04:41 2021 +0100
cid#1474156 Logically dead code
nAlphaDepth can only be 0, 1 or 8
Change-Id: I54568f943149d455477a97a958df4a2349095dcc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112750
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/helper/canvastools.cxx b/vcl/source/helper/canvastools.cxx
index 54dd76ae7651..8e837ac069e8 100644
--- a/vcl/source/helper/canvastools.cxx
+++ b/vcl/source/helper/canvastools.cxx
@@ -272,7 +272,6 @@ namespace vcl::unotools
vcl::PixelFormat::N24_BPP;
auto eAlphaPixelFormat =
( nAlphaDepth <= 1 ) ? vcl::PixelFormat::N1_BPP :
- ( nAlphaDepth <= 4 ) ? vcl::PixelFormat::N4_BPP :
vcl::PixelFormat::N8_BPP;
::Bitmap aBitmap( aPixelSize,
More information about the Libreoffice-commits
mailing list