diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-09-05 20:27:21 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-09-05 20:33:14 +0200 |
commit | 5129d01a7fb85390d925c084488493ac19c8b217 (patch) | |
tree | fe9b58acabb106063790c97e5e356c186a390984 /sc/source/ui | |
parent | b6ee7da3bff1eaca3425bfdf074a979a48f3305e (diff) |
only allow to change conditional formatting if sheet is not protected
Change-Id: I38a812a4d4ce24fb9ad65c438f6e001b376f319e
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 3 |
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); |