[Libreoffice-commits] .: sfx2/source
Michael Meeks
michael at kemper.freedesktop.org
Mon Apr 2 12:28:36 PDT 2012
sfx2/source/appl/shutdowniconunx.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 8fa3aae7b302d3c9846bfa352c1db619a5b05ca0
Author: Michael Meeks <michael.meeks at suse.com>
Date: Mon Apr 2 20:26:24 2012 +0100
fdo#34324 - fix colorspace conversion for greyscale bitmaps
diff --git a/sfx2/source/appl/shutdowniconunx.cxx b/sfx2/source/appl/shutdowniconunx.cxx
index b249544..8aad0f6 100644
--- a/sfx2/source/appl/shutdowniconunx.cxx
+++ b/sfx2/source/appl/shutdowniconunx.cxx
@@ -90,6 +90,9 @@ static GdkPixbuf * ResIdToPixbuf( sal_uInt16 nResId )
Bitmap pInSalBitmap = aIcon.GetBitmap();
AlphaMask pInSalAlpha = aIcon.GetAlpha();
+ if( pInSalBitmap.GetBitCount() != 24 )
+ pInSalBitmap.Convert( BMP_CONVERSION_24BIT );
+
Bitmap::ScopedReadAccess pSalBitmap(pInSalBitmap);
AlphaMask::ScopedReadAccess pSalAlpha(pInSalAlpha);
More information about the Libreoffice-commits
mailing list