summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2016-01-09 23:32:00 +0000
committerMichael Meeks <michael.meeks@collabora.com>2016-01-11 09:58:35 +0000
commit3f5a9ca46efc801f79cdc00a3583646936bec689 (patch)
tree2c87940330846063210589b60b0aba71100f3c02 /vcl/source
parent9a562c6f8075d55b92150ae70a595da69ab9fac8 (diff)
tdf#96655 - clear non-offscreen status bar controls before render.
Change-Id: I02a85ae4572dc23df2157af1cf164a0f82701613 Reviewed-on: https://gerrit.libreoffice.org/21300 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/status.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index ffd3541da964..9a45ee6d9d6a 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);
- }
}
}