summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-09-05 20:27:21 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-09-05 20:33:14 +0200
commit5129d01a7fb85390d925c084488493ac19c8b217 (patch)
treefe9b58acabb106063790c97e5e356c186a390984 /sc
parentb6ee7da3bff1eaca3425bfdf074a979a48f3305e (diff)
only allow to change conditional formatting if sheet is not protected
Change-Id: I38a812a4d4ce24fb9ad65c438f6e001b376f319e
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docfunc.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 70d2456d6a49..04721455ac14 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -5063,6 +5063,9 @@ void ScDocFunc::ReplaceConditionalFormat( sal_uLong nOldFormat, ScConditionalFor
{
ScDocShellModificator aModificator(rDocShell);
ScDocument* pDoc = rDocShell.GetDocument();
+ if(pDoc->IsTabProtected(nTab))
+ return;
+
if(nOldFormat)
{
pDoc->DeleteConditionalFormat(nOldFormat, nTab);