You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/07/25 15:14:43 UTC
svn commit: r1506958 -
/openoffice/trunk/main/drawinglayer/source/processor2d/vclprocessor2d.cxx
Author: hdu
Date: Thu Jul 25 13:14:42 2013
New Revision: 1506958
URL: http://svn.apache.org/r1506958
Log:
#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#.
Modified:
openoffice/trunk/main/drawinglayer/source/processor2d/vclprocessor2d.cxx
Modified: openoffice/trunk/main/drawinglayer/source/processor2d/vclprocessor2d.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/drawinglayer/source/processor2d/vclprocessor2d.cxx?rev=1506958&r1=1506957&r2=1506958&view=diff
==============================================================================
--- openoffice/trunk/main/drawinglayer/source/processor2d/vclprocessor2d.cxx (original)
+++ openoffice/trunk/main/drawinglayer/source/processor2d/vclprocessor2d.cxx Thu Jul 25 13:14:42 2013
@@ -423,10 +423,11 @@ 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
+ aMaskBmp.Erase(Color(COL_BLACK)); // #122758# Initialize to non-transparent
#endif
aBitmapEx = BitmapEx(aContent, aMaskBmp);
}