You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by al...@apache.org on 2012/05/14 18:16:00 UTC

svn commit: r1338271 - /incubator/ooo/trunk/main/sw/source/ui/frmdlg/frmpage.cxx

Author: alg
Date: Mon May 14 16:16:00 2012
New Revision: 1338271

URL: http://svn.apache.org/viewvc?rev=1338271&view=rev
Log:
#119307# added deletion of sw's BmpWindow control due to the fact that graphics may be transparent

Modified:
    incubator/ooo/trunk/main/sw/source/ui/frmdlg/frmpage.cxx

Modified: incubator/ooo/trunk/main/sw/source/ui/frmdlg/frmpage.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sw/source/ui/frmdlg/frmpage.cxx?rev=1338271&r1=1338270&r2=1338271&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sw/source/ui/frmdlg/frmpage.cxx (original)
+++ incubator/ooo/trunk/main/sw/source/ui/frmdlg/frmpage.cxx Mon May 14 16:16:00 2012
@@ -2693,7 +2693,8 @@ BmpWindow::BmpWindow( Window* pPar, sal_
 	bGraphic(sal_False),
 	bLeftAlign(sal_False)
 {
-    SetBackground();
+    // #119307# use background, the graphic might have transparency
+    SetBackground(Wallpaper(Color(COL_WHITE)));
 }
 
 void BmpWindow::Paint( const Rectangle& )
@@ -2730,6 +2731,9 @@ void BmpWindow::Paint( const Rectangle& 
         aPntSz.Width()  *= -1;
     }
 
+    // #119307# clear window background, the graphic might have transparency
+    Erase();
+
     if ( bGraphic )
         aGraphic.Draw( this, aPntPos, aPntSz );
     else