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

New commits:
commit 78f54616efdcfb1c8cbd1a75d3cf9faf7b5e1b8a
Author: Herbert Dürr <h...@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
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to