[Libreoffice-commits] core.git: vcl/source
Michael Meeks
michael.meeks at collabora.com
Mon Jan 11 01:58:59 PST 2016
vcl/source/window/status.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 3f5a9ca46efc801f79cdc00a3583646936bec689
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Sat Jan 9 23:32:00 2016 +0000
tdf#96655 - clear non-offscreen status bar controls before render.
Change-Id: I02a85ae4572dc23df2157af1cf164a0f82701613
Reviewed-on: https://gerrit.libreoffice.org/21300
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index ffd3541..9a45ee6 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -698,7 +698,7 @@ void StatusBar::MouseButtonDown( const MouseEvent& rMEvt )
}
}
-void StatusBar::Paint(vcl::RenderContext& rRenderContext, const Rectangle&)
+void StatusBar::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect)
{
if (mbFormat)
ImplFormat();
@@ -737,10 +737,11 @@ void StatusBar::Paint(vcl::RenderContext& rRenderContext, const Rectangle&)
if( OpenGLWrapper::isVCLOpenGLEnabled() )
bOffscreen = false;
+ if (!bOffscreen)
+ rRenderContext.Erase(rRect);
+
for (sal_uInt16 i = 0; i < nItemCount; i++)
- {
ImplDrawItem(rRenderContext, bOffscreen, i, true, true);
- }
}
}
More information about the Libreoffice-commits
mailing list