summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-06-05 15:01:02 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-06-05 15:03:32 +0900
commitd119f4bae4c688ce799f2c5493f345194ca41ab1 (patch)
tree561c6ac70eb60d8cb1a66f6ed98a4bcfa6eb814a /vcl
parentd304dd4db35c79a33bdf118e45e0675d2d86f51d (diff)
Use status offscreen rendering when not in "RecordLayout" mode
Change-Id: I770dc9a91bc1239e64ec8e538be0f6a4b03dd08e
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/status.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index c0736210fcc1..0ea944d82c66 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);
+ }
}
}