[Libreoffice-commits] core.git: Branch 'aoo/trunk' - drawinglayer/source

Herbert Dürr hdu at apache.org
Thu Jul 25 07:08:11 PDT 2013


 drawinglayer/source/processor2d/vclprocessor2d.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 78f54616efdcfb1c8cbd1a75d3cf9faf7b5e1b8a
Author: Herbert Dürr <hdu at apache.org>
Date:   Thu Jul 25 13:14:42 2013 +0000

    #i122836# fix rotated images looking corrupted on MacOSX
    
    The solution is to intialize the images rotation mask to be opaque,
    an approach that also the fix for bug #i122758#.

diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx
index 2fc409d..b14fdb0 100644
--- a/drawinglayer/source/processor2d/vclprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx
@@ -423,7 +423,8 @@ namespace drawinglayer
                 // parts will be uncovered, extend aBitmapEx with a mask bitmap
                 const Bitmap aContent(aBitmapEx.GetBitmap());
 #if defined(MACOSX)
-                const AlphaMask aMaskBmp( aContent.GetSizePixel());
+                AlphaMask aMaskBmp( aContent.GetSizePixel());
+                aMaskBmp.Erase( 0);
 #else
                 Bitmap aMaskBmp( aContent.GetSizePixel(), 1);
                 aMaskBmp.Erase(Color(COL_BLACK)); // #122758# Initialize to non-transparent


More information about the Libreoffice-commits mailing list