[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - sc/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Tue Sep 15 10:51:48 UTC 2020
sc/source/ui/cctrl/tbzoomsliderctrl.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 22886babfdb9fad2e50d40e04250d54366a9a708
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Mon Sep 7 13:28:33 2020 +0200
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Tue Sep 15 12:51:16 2020 +0200
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 at collabora.co.uk>
(cherry picked from commit 00cffc20e40b2412c7e9867eed24c9834504e24f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102646
Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>
diff --git a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
index 6e05c824d5af..4c9cc5832f73 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;
More information about the Libreoffice-commits
mailing list