diff options
Diffstat (limited to 'vcl/source')
-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 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); - } } } |