[Libreoffice-commits] core.git: vcl/source

Tomaž Vajngerl tomaz.vajngerl at collabora.co.uk
Thu Jun 4 23:04:08 PDT 2015


 vcl/source/window/status.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit d119f4bae4c688ce799f2c5493f345194ca41ab1
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
Date:   Fri Jun 5 15:01:02 2015 +0900

    Use status offscreen rendering when not in "RecordLayout" mode
    
    Change-Id: I770dc9a91bc1239e64ec8e538be0f6a4b03dd08e

diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index c073621..0ea944d 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);
+            }
         }
     }
 


More information about the Libreoffice-commits mailing list