diff options
author | Eike Rathke <erack@redhat.com> | 2018-07-06 15:33:08 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-07-07 23:07:13 +0200 |
commit | f9bc663d8d33d00ba3019151c82f0710b199d387 (patch) | |
tree | 5183fe7acd21eac79d57eebc6fe6b14ae864edda | |
parent | c3bc3a59cd44ee4eb75c22084f825ce61ba217b0 (diff) |
Handle protection lock mark in Undo/Redo, tdf#95880 follow-up
Change-Id: Ic88cb375f9f6030c9268fca84de7a5434bb82dc1
Reviewed-on: https://gerrit.libreoffice.org/57063
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
(cherry picked from commit 6fb449d127d1da165f610c4c99c2c7d9c5afbb97)
Reviewed-on: https://gerrit.libreoffice.org/57087
Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r-- | sc/source/ui/undo/undotab.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx index 8b27f5b317ed..e5b976e07374 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 } |