summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-01-27 02:34:00 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-01-27 02:37:15 +0100
commit6a82a9908cc5b911dd6783cab69ed3dcb6ba66bb (patch)
treedc2d9c03e80f26fcc008c2d06ae1c271408b4f50 /sc
parent7bd35614757e4e97913ed9b9d3344f800e8514b2 (diff)
we need to parse the cell address after import, fdo#59843
Otherwise we may have problems with sheet names from sheets that are not yet imported. Change-Id: I99a6507567b7d1018b790a90019cd563fa7323a0
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/xml/xmlcondformat.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/filter/xml/xmlcondformat.cxx b/sc/source/filter/xml/xmlcondformat.cxx
index 1f0a31b713e1..571426c08eb0 100644
--- a/sc/source/filter/xml/xmlcondformat.cxx
+++ b/sc/source/filter/xml/xmlcondformat.cxx
@@ -578,12 +578,10 @@ ScXMLCondContext::ScXMLCondContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
rtl::OUString aExpr2;
ScConditionMode eMode;
GetConditionData(sExpression, eMode, aExpr1, aExpr2);
- ScAddress aPos;
- sal_Int32 nIndex = 0;
- ScRangeStringConverter::GetAddressFromString(aPos, sAddress, GetScImport().GetDocument(), formula::FormulaGrammar::CONV_ODF, nIndex);
- ScCondFormatEntry* pFormatEntry = new ScCondFormatEntry(eMode, aExpr1, aExpr2, GetScImport().GetDocument(), aPos, sStyle,
+ ScCondFormatEntry* pFormatEntry = new ScCondFormatEntry(eMode, aExpr1, aExpr2, GetScImport().GetDocument(), ScAddress(), sStyle,
rtl::OUString(), rtl::OUString(), formula::FormulaGrammar::GRAM_ODFF, formula::FormulaGrammar::GRAM_ODFF);
+ pFormatEntry->SetSrcString(sAddress);
pFormat->AddEntry(pFormatEntry);
}