From c3a732a11c320b98e31dad79f421d4d73f33a15b Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Fri, 6 Jul 2018 11:01:06 +0200 Subject: 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 --- sc/source/ui/view/viewfunc.cxx | 5 +++-- 1 file 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; } -- cgit