diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2016-01-09 23:32:00 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-01-12 21:41:59 +0000 |
commit | 2e098c48501ba193a7062b4afe2e768c0996464c (patch) | |
tree | fd09a5e54dc9eb5aa2fa3831a0b4dd178c43bf82 /vcl | |
parent | 98982ca06a87e8b63204b0acda2105c66ae57440 (diff) |
tdf#96655 - clear non-offscreen status bar controls before render.
Change-Id: I02a85ae4572dc23df2157af1cf164a0f82701613
Reviewed-on: https://gerrit.libreoffice.org/21301
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/status.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx index c9649aaa8e77..1982a7053132 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); - } } } |