[Libreoffice-commits] core.git: Branch 'aoo/trunk' - sd/source
Armin Le Grand
alg at apache.org
Fri Feb 28 14:07:38 PST 2014
sd/source/ui/view/drviews5.cxx | 11 +++++++++++
1 file changed, 11 insertions(+)
New commits:
commit 2f6673f38d76df1a26c658b20e9c180c7bfd4d14
Author: Armin Le Grand <alg at apache.org>
Date: Fri Feb 28 20:27:32 2014 +0000
i57936 Added refresh to update LayerTabBar when attributes like Layer visibility were set
diff --git a/sd/source/ui/view/drviews5.cxx b/sd/source/ui/view/drviews5.cxx
index cd99218..fc9fb0f 100644
--- a/sd/source/ui/view/drviews5.cxx
+++ b/sd/source/ui/view/drviews5.cxx
@@ -320,6 +320,17 @@ void DrawViewShell::ReadFrameViewData(FrameView* pView)
EditMode eNewEditMode = pView->GetViewShEditMode(mePageKind);
sal_Bool bNewLayerMode = pView->IsLayerMode();
+
+ if(IsLayerModeActive() && bNewLayerMode)
+ {
+ // #57936# 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