[Libreoffice-commits] core.git: Branch 'libreoffice-6-1' - sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Aug 17 05:17:24 UTC 2018


 sc/source/ui/view/viewfunc.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 30c178dcb3301527ad92bbd245d1525ab77e314e
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Thu Aug 16 19:57:52 2018 +0200
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Fri Aug 17 07:17:01 2018 +0200

    Related tdf#118547: don't change protection symbol if nTab == TABLEID_DOC
    
    See Eike's comment in https://gerrit.libreoffice.org/#/c/59035/
    
    Change-Id: Ic0f6f0a6fc8d08a7c92b2c12bd301f5089843891
    Reviewed-on: https://gerrit.libreoffice.org/59219
    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 6533068bcd04..54677815d542 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -2541,7 +2541,7 @@ bool ScViewFunc::Unprotect( SCTAB nTab, const OUString& rPassword )
     if ( nTab == TABLEID_DOC || rMark.GetSelectCount() <= 1 )
     {
         bChanged = rFunc.Unprotect( nTab, rPassword, false );
-        if (bChanged)
+        if (bChanged && nTab != TABLEID_DOC)
             SetTabProtectionSymbol(nTab, false);
     }
     else


More information about the Libreoffice-commits mailing list