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

Eike Rathke erack at redhat.com
Fri Jul 6 16:48:01 UTC 2018


 sc/source/ui/undo/undotab.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 6fb449d127d1da165f610c4c99c2c7d9c5afbb97
Author: Eike Rathke <erack at redhat.com>
Date:   Fri Jul 6 15:33:08 2018 +0200

    Handle protection lock mark in Undo/Redo, tdf#68290 follow-up
    
    Change-Id: Ic88cb375f9f6030c9268fca84de7a5434bb82dc1
    Reviewed-on: https://gerrit.libreoffice.org/57063
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Jenkins

diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx
index 689f61b43142..0217d41f15fd 100644
--- a/sc/source/ui/undo/undotab.cxx
+++ b/sc/source/ui/undo/undotab.cxx
@@ -1256,6 +1256,8 @@ void ScUndoTabProtect::DoProtect(bool bProtect)
     ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
     if (pViewShell)
     {
+        if (ScTabView* pTabView = pViewShell->GetViewData().GetView())
+            pTabView->SetTabProtectionSymbol( mnTab, bProtect);
         pViewShell->UpdateLayerLocks();
         pViewShell->UpdateInputHandler(true);   // so that input can be immediately entered again
     }


More information about the Libreoffice-commits mailing list