summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Budea <aron.budea@collabora.com>2018-02-18 23:04:09 +0100
committerEike Rathke <erack@redhat.com>2018-02-21 18:03:31 +0100
commit56e0895730fa289d72333d7b432122292e37b4c4 (patch)
treeffdb4298359ecaadc02116e1afecb33622848b71
parent4a412bdf0387cc2cb59d656d0738a63a286ec497 (diff)
for listeners the range needs to be set before the formula, tdf#115530
Change-Id: I001795fd456375c4babab2c2e505bedff03e991f Reviewed-on: https://gerrit.libreoffice.org/49957 Reviewed-by: Aron Budea <aron.budea@collabora.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> (cherry picked from commit 26b51c9550ef300e7685fc41eb9cde4dbbc11265) Reviewed-on: https://gerrit.libreoffice.org/50016 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
-rw-r--r--sc/source/filter/oox/condformatbuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/oox/condformatbuffer.cxx b/sc/source/filter/oox/condformatbuffer.cxx
index 274f062b999d..e08ed061c8d3 100644
--- a/sc/source/filter/oox/condformatbuffer.cxx
+++ b/sc/source/filter/oox/condformatbuffer.cxx
@@ -1055,12 +1055,12 @@ void CondFormat::finalizeImport()
if ( !mbReadyForFinalize )
return;
ScDocument& rDoc = getScDocument();
+ mpFormat->SetRange(maModel.maRanges);
maRules.forEachMem( &CondFormatRule::finalizeImport );
SCTAB nTab = maModel.maRanges.GetTopLeftCorner().Tab();
sal_Int32 nIndex = getScDocument().AddCondFormat(mpFormat, nTab);
rDoc.AddCondFormatData( maModel.maRanges, nTab, nIndex );
- mpFormat->SetRange(maModel.maRanges);
}
CondFormatRuleRef CondFormat::createRule()