[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Aug 17 12:10:43 UTC 2018
sc/source/ui/view/viewfunc.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit fb63a622cb843d2d0178bc26ff35d9b17deaee5a
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Tue Aug 14 22:01:42 2018 +0200
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Fri Aug 17 14:10:22 2018 +0200
Related tdf#118547: Lock mark on protected sheet tab
Fix opposite case, see https://bugs.documentfoundation.org/show_bug.cgi?id=118547#c10
Reviewed-on: https://gerrit.libreoffice.org/59035
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
(cherry picked from commit d064ced9e9db3f924dd954b86c40f21addab1c68)
Change-Id: I2c4e55f8929b1979e71a4040dfac1ba7cff51aeb
Reviewed-on: https://gerrit.libreoffice.org/59041
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Jenkins
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index 3f6e583c6f60..435a5a6f1ad5 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -2541,7 +2541,11 @@ bool ScViewFunc::Unprotect( SCTAB nTab, const OUString& rPassword )
bool bUndo (rDoc.IsUndoEnabled());
if ( nTab == TABLEID_DOC || rMark.GetSelectCount() <= 1 )
+ {
bChanged = rFunc.Unprotect( nTab, rPassword, false );
+ if (bChanged && nTab != TABLEID_DOC)
+ SetTabProtectionSymbol(nTab, false);
+ }
else
{
// modifying several tabs is handled here
More information about the Libreoffice-commits
mailing list