diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-06-05 15:01:02 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-06-05 15:04:55 +0900 |
commit | d132cf6c18fc78c844cc5dcf210df4e8c2267172 (patch) | |
tree | 81e6308e7bbcb04845d9dfe16b8ac602bb49995f | |
parent | 1b3d17ba7cd45dc0431b9b1809d908a7a066d9a1 (diff) |
Use status offscreen rendering when not in "RecordLayout" mode
Change-Id: I770dc9a91bc1239e64ec8e538be0f6a4b03dd08e
-rw-r--r-- | vcl/source/window/status.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx index 0909bb7ccae3..157925d55c51 100644 --- a/vcl/source/window/status.cxx +++ b/vcl/source/window/status.cxx @@ -728,8 +728,13 @@ void StatusBar::Paint(vcl::RenderContext& rRenderContext, const Rectangle&) // draw items if (mbVisibleItems) { + // Do offscreen only when we are not recording layout.. + bool bOffscreen = !rRenderContext.ImplIsRecordLayout(); + for (sal_uInt16 i = 0; i < nItemCount; i++) - ImplDrawItem(rRenderContext, false, i, true, true); + { + ImplDrawItem(rRenderContext, bOffscreen, i, true, true); + } } } |