diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2018-07-06 11:01:06 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-07-06 14:26:57 +0200 |
commit | c3a732a11c320b98e31dad79f421d4d73f33a15b (patch) | |
tree | 81dedcbe55691a6b83691548a0001dafc193f1c1 /sc | |
parent | ec68d58afd53ffd5f0f524503dec607e52385c72 (diff) |
tdf#118547: Remove lock mark only if password is correct
Change-Id: I9f5731dfaaf9b4cc67e600a8b1c01709e7c9ba99
Reviewed-on: https://gerrit.libreoffice.org/57044
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/viewfunc.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx index 9e29d72da734..a4091418909d 100644 --- a/sc/source/ui/view/viewfunc.cxx +++ b/sc/source/ui/view/viewfunc.cxx @@ -2557,10 +2557,11 @@ bool ScViewFunc::Unprotect( SCTAB nTab, const OUString& rPassword ) pDocSh->GetUndoManager()->LeaveListAction(); } - SetTabProtectionSymbol(nTab, false); - if (bChanged) + { + SetTabProtectionSymbol(nTab, false); UpdateLayerLocks(); //! broadcast to all views + } return bChanged; } |