incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1338271 - /incubator/ooo/trunk/main/sw/source/ui/frmdlg/frmpage.cxx
Date Mon, 14 May 2012 16:16:00 GMT
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



Mime
View raw message