Resolves: fdo#80681 widget is not transparent

regression from 12dfca2ea6
Author: Armin Le Grand <alg@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

Change-Id: I7eb2ee8ed53f0ef907a4573a735c71de43b6e8d3
This commit is contained in:
Caolán McNamara
2014-06-30 16:29:48 +01:00
parent 01da41b308
commit 1caad856de

View File

@@ -2606,8 +2606,12 @@ BmpWindow::BmpWindow(Window* pPar, WinBits nStyle)
, bGraphic(false)
, bLeftAlign(false)
{
// #i119307# use background, the graphic might have transparency
SetBackground(Wallpaper(Color(COL_WHITE)));
SetBackground();
SetPaintTransparent(sal_True);
// #i119307# the graphic might have transparency, set up white as the color
// to use when drawing a rectangle under the image
SetLineColor(COL_WHITE);
SetFillColor(COL_WHITE);
}
Size BmpWindow::GetOptimalSize() const
@@ -2665,7 +2669,7 @@ void BmpWindow::Paint( const Rectangle& )
}
// #i119307# clear window background, the graphic might have transparency
Erase();
DrawRect(Rectangle(aPntPos, aPntSz));
if ( bGraphic )
aGraphic.Draw( this, aPntPos, aPntSz );