[Libreoffice-commits] core.git: drawinglayer/source

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


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

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

    Resolves: #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#.
    
    (cherry picked from commit 78f54616efdcfb1c8cbd1a75d3cf9faf7b5e1b8a)
    
    Change-Id: I417aab21ded9619ae4023edf169136c7115d4a07

diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx
index 5027cb1..2477640 100644
--- a/drawinglayer/source/processor2d/vclprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx
@@ -449,7 +449,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