diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-07 13:28:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-07 15:04:17 +0200 |
commit | 00cffc20e40b2412c7e9867eed24c9834504e24f (patch) | |
tree | 7fa589ca1770f0c8f3d6e4b8ff8688601c29d963 /sc | |
parent | 288db6eb47fbbd2b3ca34ffea0686d8ed8ed9be9 (diff) |
tdf#135181 Calc print preview zoom slider print preview not transparent (gen)
Change-Id: I7244f429194145df99a4b52fce144c6ec45f3b61
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102168
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/cctrl/tbzoomsliderctrl.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx index f03b789e8020..37335bbca80a 100644 --- a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx +++ b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx @@ -397,9 +397,11 @@ void ScZoomSlider::DoPaint(vcl::RenderContext& rRenderContext) Size aSliderWindowSize(GetOutputSizePixel()); tools::Rectangle aRect(Point(0, 0), aSliderWindowSize); - ScopedVclPtrInstance< VirtualDevice > pVDev(rRenderContext); - pVDev->SetBackground(Wallpaper(COL_TRANSPARENT)); + ScopedVclPtrInstance< VirtualDevice > pVDev(rRenderContext, DeviceFormat::DEFAULT, DeviceFormat::BITMASK); pVDev->SetOutputSizePixel(aSliderWindowSize); + pVDev->SetFillColor( COL_TRANSPARENT ); + pVDev->SetLineColor( COL_TRANSPARENT ); + pVDev->DrawRect( aRect ); tools::Rectangle aSlider = aRect; |