diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-06-25 04:14:17 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-06-25 04:14:17 +0200 |
commit | 9bd77a00490090fa9b43cd1ad270e8847f6e22fe (patch) | |
tree | 606accfac8f082b8d97c000746fae1252c90c50e /sc | |
parent | 77533d6ec1c7f0849db0c34b61d6583d7b3d0018 (diff) |
repaint all cells if NULL is passed, fdo#51174
Change-Id: If58448fa040ad88db4edaa9aaefc771dbad0826b
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/conditio.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx index 7a555a6fa4fa..60b470496c39 100644 --- a/sc/source/core/data/conditio.cxx +++ b/sc/source/core/data/conditio.cxx @@ -1486,7 +1486,15 @@ bool lcl_CutRange( ScRange& rRange, const ScRange& rOther ) void ScConditionalFormat::DoRepaint( const ScRange* pModified ) { - pDoc->RepaintRange(*pModified); + if(pModified) + pDoc->RepaintRange(*pModified); + else + { + // all conditional format cells + size_t n = maRanges.size(); + for(size_t i = 0; i < n; ++i) + pDoc->RepaintRange(*maRanges[i]); + } } void ScConditionalFormat::CompileAll() |