[Libreoffice-commits] core.git: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Aug 15 07:21:28 UTC 2018


 sc/source/ui/view/viewfunc.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit d064ced9e9db3f924dd954b86c40f21addab1c68
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Tue Aug 14 22:01:42 2018 +0200
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Wed Aug 15 09:21:05 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
    
    Change-Id: I2c4e55f8929b1979e71a4040dfac1ba7cff51aeb
    Reviewed-on: https://gerrit.libreoffice.org/59035
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index 441364a8f971..3ac263c0165e 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -2549,7 +2549,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)
+            SetTabProtectionSymbol(nTab, false);
+    }
     else
     {
         //  modifying several tabs is handled here


More information about the Libreoffice-commits mailing list