summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-08-16 19:57:52 +0200
committerJulien Nabet <serval2412@yahoo.fr>2018-08-16 23:37:07 +0200
commit24a30e5bde07cf168c30adadb417ba002818970b (patch)
tree8c2a897f4ca60a63f73fd426000d468857394332
parent613333d0be43aab4191344916c41f9cb1ca62c7d (diff)
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/59218 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
-rw-r--r--sc/source/ui/view/viewfunc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index 3ac263c0165e..a940afba1bea 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -2551,7 +2551,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