summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/xmlcondformat.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-07-10 00:16:00 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-07-14 01:58:06 +0200
commit17722541e906cf64dcdd7169194aad72ec14bb10 (patch)
tree462d86324cb0e2ce2a41021e9cd6da9371fd4cd7 /sc/source/filter/xml/xmlcondformat.cxx
parent771149ac99a57c641caebdfc7dd6fac25c292682 (diff)
tdf#117809, listen to the actual conditional format range if necessary
Change-Id: Ib83cf22e40f5e0338a3c85f631d30f00b80d8655 Reviewed-on: https://gerrit.libreoffice.org/57406 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/filter/xml/xmlcondformat.cxx')
-rw-r--r--sc/source/filter/xml/xmlcondformat.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlcondformat.cxx b/sc/source/filter/xml/xmlcondformat.cxx
index deb34ec4e596..10ff5eda5de7 100644
--- a/sc/source/filter/xml/xmlcondformat.cxx
+++ b/sc/source/filter/xml/xmlcondformat.cxx
@@ -398,6 +398,7 @@ ScXMLDataBarFormatContext::ScXMLDataBarFormatContext( ScXMLImport& rImport,
ScConditionalFormat* pFormat):
ScXMLImportContext( rImport ),
mpFormatData(nullptr),
+ mpParent(pFormat),
mnIndex(0)
{
OUString sPositiveColor;
@@ -521,6 +522,7 @@ css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL ScXMLDataBarF
{
ScColorScaleEntry* pEntry(nullptr);
pContext = new ScXMLFormattingEntryContext( GetScImport(), pAttribList, pEntry );
+ pEntry->SetRepaintCallback(mpParent);
if(mnIndex == 0)
{
mpFormatData->mpLowerLimit.reset(pEntry);
@@ -547,7 +549,8 @@ css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL ScXMLDataBarF
ScXMLIconSetFormatContext::ScXMLIconSetFormatContext(ScXMLImport& rImport,
const rtl::Reference<sax_fastparser::FastAttributeList>& rAttrList,
ScConditionalFormat* pFormat):
- ScXMLImportContext( rImport )
+ ScXMLImportContext( rImport ),
+ mpParent(pFormat)
{
OUString aIconSetType, sShowValue;
if ( rAttrList.is() )
@@ -611,6 +614,7 @@ css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL ScXMLIconSetF
ScColorScaleEntry* pEntry(nullptr);
pContext = new ScXMLFormattingEntryContext( GetScImport(), pAttribList, pEntry );
mpFormatData->m_Entries.push_back(std::unique_ptr<ScColorScaleEntry>(pEntry));
+ pEntry->SetRepaintCallback(mpParent);
}
break;
default: