From 70216212dac0643b601d005386f0fd37fc19834a Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Wed, 3 Oct 2012 17:17:41 +0200 Subject: changing conditional formats invalids the stream Change-Id: I5d0137ebfa53cfbe37f7ad33c3400e75e2e3a05a --- sc/source/ui/docshell/docfunc.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index f44fcd5f76aa..41fdfe6cccec 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -5069,6 +5069,7 @@ void ScDocFunc::ReplaceConditionalFormat( sal_uLong nOldFormat, ScConditionalFor if(nOldFormat) { pDoc->DeleteConditionalFormat(nOldFormat, nTab); + pDoc->SetStreamValid(nTab, false); } if(pFormat) { @@ -5082,6 +5083,7 @@ void ScDocFunc::ReplaceConditionalFormat( sal_uLong nOldFormat, ScConditionalFor size_t n = rRanges.size(); for(size_t i = 0; i < n; ++i) pFormat->DoRepaint(rRanges[i]); + pDoc->SetStreamValid(nTab, false); } aModificator.SetDocumentModified(); SFX_APP()->Broadcast(SfxSimpleHint(SC_HINT_AREAS_CHANGED)); -- cgit