diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-06-16 10:12:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-06-16 10:39:13 +0100 |
commit | 103b619401f06697255167c788192601e87758b9 (patch) | |
tree | 1e67a8863c0223a3854142a25d8af5bd86ecf441 /sc | |
parent | 9dcd2d119ab67bde9de588c42db3805525d5f06a (diff) |
fix 176 unbalanced XML_f xlsx export failuires
regression from
commit beb8e2830dc9e1c771e196fcaf08cdfd6bf3dde3
Author: yogesh.bharate001 <yogesh.bharate@synerzip.com>
Date: Tue Jun 2 16:39:09 2015 +0530
tdf#61908:XLSX formula cell range is not exported for MMULT.
Change-Id: Ia54ce5ce437e592378fe930b779c518de9670995
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xetable.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx index 38bb673daa59..02a9d9123d56 100644 --- a/sc/source/filter/excel/xetable.cxx +++ b/sc/source/filter/excel/xetable.cxx @@ -932,6 +932,7 @@ void XclExpFormulaCell::SaveXml( XclExpXmlStream& rStrm ) // OOXTODO: XML_cm, XML_vm, XML_ph FSEND ); + bool bTagStarted = false; ScAddress aScPos( static_cast< SCCOL >( GetXclPos().mnCol ), static_cast< SCROW >( GetXclPos().mnRow ), rStrm.GetRoot().GetCurrScTab() ); if ( mrScFmlaCell.GetMatrixFlag() == MM_FORMULA) @@ -973,9 +974,10 @@ void XclExpFormulaCell::SaveXml( XclExpXmlStream& rStrm ) // OOXTODO: XML_si, uint // OOXTODO: XML_bx bool FSEND ); + bTagStarted = true; } } - else + if (!bTagStarted) { rWorksheet->startElement( XML_f, XML_aca, XclXmlUtils::ToPsz( (mxTokArr && mxTokArr->IsVolatile()) || (mxAddRec && mxAddRec->IsVolatile()) ), |