summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2018-07-06 15:33:08 +0200
committerEike Rathke <erack@redhat.com>2018-07-06 18:47:28 +0200
commit6fb449d127d1da165f610c4c99c2c7d9c5afbb97 (patch)
tree04264ed9f1be94ea5ae9d7a948cdc5ddb7bed0fc
parentoox: Agile encryption and data integrity verification (diff)
downloadcore-6fb449d127d1da165f610c4c99c2c7d9c5afbb97.tar.gz
core-6fb449d127d1da165f610c4c99c2c7d9c5afbb97.zip
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@redhat.com> Tested-by: Jenkins
-rw-r--r--sc/source/ui/undo/undotab.cxx2
1 files changed, 2 insertions, 0 deletions
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
}