summaryrefslogtreecommitdiff
path: root/sc/source/core/data/documen7.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/documen7.cxx')
-rw-r--r--sc/source/core/data/documen7.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/sc/source/core/data/documen7.cxx b/sc/source/core/data/documen7.cxx
index ea06c2a0faae..6d024b813bbc 100644
--- a/sc/source/core/data/documen7.cxx
+++ b/sc/source/core/data/documen7.cxx
@@ -149,12 +149,20 @@ void ScDocument::BroadcastCells( const ScRange& rRange, sal_uLong nHint )
continue;
ScConditionalFormatList* pCondFormList = GetCondFormList(nTab);
- if (pCondFormList)
+ if (pCondFormList && !pCondFormList->empty())
{
+ /* TODO: looping over all possible cells is a terrible bottle neck,
+ * for each cell looping over all conditional formats even worse,
+ * this certainly needs a better method. */
+ ScAddress aAddress( 0, 0, nTab);
for (SCROW nRow = nRow1; nRow <= nRow2; ++nRow)
{
+ aAddress.SetRow(nRow);
for (SCCOL nCol = nCol1; nCol <= nCol2; ++nCol)
- pCondFormList->SourceChanged(ScAddress(nCol,nRow,nTab));
+ {
+ aAddress.SetCol(nCol);
+ pCondFormList->SourceChanged(aAddress);
+ }
}
}
}