Kaydet (Commit) ad907b7b authored tarafından Aron Budea's avatar Aron Budea

for listeners the range needs to be set before the formula, tdf#115530

Reviewed-on: https://gerrit.libreoffice.org/49957Reviewed-by: 's avatarAron Budea <aron.budea@collabora.com>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 26b51c95)
Reviewed-on: https://gerrit.libreoffice.org/50016Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
(cherry picked from commit 56e08957)

Change-Id: I001795fd456375c4babab2c2e505bedff03e991f
üst 0eb47944
......@@ -1060,10 +1060,6 @@ void CondFormat::finalizeImport()
// probably some error in the xml if we are not ready
if ( !mbReadyForFinalize )
return;
ScDocument& rDoc = getScDocument();
maRules.forEachMem( &CondFormatRule::finalizeImport );
SCTAB nTab = maModel.maRanges.getBaseAddress().Tab();
sal_Int32 nIndex = getScDocument().AddCondFormat(mpFormat, nTab);
ScRangeList aList;
for( ::std::vector< CellRangeAddress >::const_iterator itr = maModel.maRanges.begin(); itr != maModel.maRanges.end(); ++itr)
......@@ -1072,8 +1068,14 @@ void CondFormat::finalizeImport()
ScUnoConversion::FillScRange(aRange, *itr);
aList.Append(aRange);
}
rDoc.AddCondFormatData( aList, nTab, nIndex );
mpFormat->SetRange(aList);
ScDocument& rDoc = getScDocument();
maRules.forEachMem( &CondFormatRule::finalizeImport );
SCTAB nTab = maModel.maRanges.getBaseAddress().Tab();
sal_Int32 nIndex = getScDocument().AddCondFormat(mpFormat, nTab);
rDoc.AddCondFormatData( aList, nTab, nIndex );
}
CondFormatRuleRef CondFormat::createRule()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment