From 92df7db85a3da10f18a5a06fb53a9cb69910e835 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 15 Sep 2015 13:05:03 +0200 Subject: array formulas do not consist only of multiple rows, tdf#61908 follow-up For example, {={1,2}*3} is a two columns one row vector, or even a single cell could hold an array formula. Change-Id: I14a44ac8356fdffc98b7097f48319755f5f2f317 --- sc/source/filter/excel/xetable.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx index 02a9d9123d56..9437d8cde5f4 100644 --- a/sc/source/filter/excel/xetable.cxx +++ b/sc/source/filter/excel/xetable.cxx @@ -958,7 +958,7 @@ void XclExpFormulaCell::SaveXml( XclExpXmlStream& rStrm ) sFmlaCellRange.append(XclXmlUtils::ToOString( rStrm.GetRoot().GetStringBuf(), aMatScRange.aEnd ).getStr()); } - if (aMatScRange.aStart.Col() == GetXclPos().mnCol && aMatScRange.aEnd.Row() > static_cast< SCROW >(GetXclPos().mnRow)) + if (aMatScRange.aStart.Col() == GetXclPos().mnCol && aMatScRange.aStart.Row() == static_cast(GetXclPos().mnRow)) { rWorksheet->startElement( XML_f, XML_aca, XclXmlUtils::ToPsz( (mxTokArr && mxTokArr->IsVolatile()) || (mxAddRec && mxAddRec->IsVolatile()) ), -- cgit