[Libreoffice-commits] core.git: sw/source
Armin Le Grand
alg at apache.org
Sat Mar 16 02:19:57 PDT 2013
sw/source/ui/frmdlg/frmpage.cxx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 12dfca2ea61116665a7abefd43a9a4caa2b8920b
Author: Armin Le Grand <alg at apache.org>
Date: Mon May 14 15:16:00 2012 +0000
Resolves: #i119307# added deletion of sw's BmpWindow control...
...due to the fact that graphics may be transparent
Conflicts:
sw/source/ui/frmdlg/frmpage.cxx
Change-Id: I049cc5a6abf1a19ef181991bb1015e0708dc1cc2
diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx
index 48a9dbf..a387a37 100644
--- a/sw/source/ui/frmdlg/frmpage.cxx
+++ b/sw/source/ui/frmdlg/frmpage.cxx
@@ -2525,8 +2525,8 @@ BmpWindow::BmpWindow( Window* pPar, sal_uInt16 nId,
bGraphic(sal_False),
bLeftAlign(false)
{
- SetBackground();
- SetPaintTransparent(sal_True);
+ // #i119307# use background, the graphic might have transparency
+ SetBackground(Wallpaper(Color(COL_WHITE)));
}
void BmpWindow::Paint( const Rectangle& )
@@ -2573,6 +2573,9 @@ void BmpWindow::Paint( const Rectangle& )
aPntSz.Width() *= -1;
}
+ // #i119307# clear window background, the graphic might have transparency
+ Erase();
+
if ( bGraphic )
aGraphic.Draw( this, aPntPos, aPntSz );
else
More information about the Libreoffice-commits
mailing list