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

Armin Le Grand alg at apache.org
Sat Mar 1 03:30:22 PST 2014


 sd/source/ui/view/drviews5.cxx |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit f586542c3d3e5fda3a73c736ceaee3719859942d
Author: Armin Le Grand <alg at apache.org>
Date:   Fri Feb 28 20:27:32 2014 +0000

    Related: #i57936# Added refresh to update LayerTabBar...
    
    when attributes like Layer visibility were set
    
    (cherry picked from commit 2f6673f38d76df1a26c658b20e9c180c7bfd4d14)
    
    Change-Id: Iafc6be8070b69a01a80425fdafa2c55e7560f924

diff --git a/sd/source/ui/view/drviews5.cxx b/sd/source/ui/view/drviews5.cxx
index 8555b8e..fd3fe88 100644
--- a/sd/source/ui/view/drviews5.cxx
+++ b/sd/source/ui/view/drviews5.cxx
@@ -289,6 +289,17 @@ void DrawViewShell::ReadFrameViewData(FrameView* pView)
 
     EditMode eNewEditMode = pView->GetViewShEditMode(mePageKind);
     sal_Bool bNewLayerMode = pView->IsLayerMode();
+
+    if(IsLayerModeActive() && bNewLayerMode)
+    {
+        // #i57936# Force mbIsLayerModeActive to false so that ChangeEditMode
+        // below does something regarding LayerTabBar content refresh. That refresh
+        // is only done when IsLayerModeActive changes. It needs to be done
+        // since e.g. Layer vsisibility was changed above and this may need
+        // a refresh to show the correct graphical representation
+        mbIsLayerModeActive = false;
+    }
+
     ChangeEditMode(eNewEditMode, bNewLayerMode);
     SwitchPage(nSelectedPage);
 


More information about the Libreoffice-commits mailing list