diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-05-23 16:09:36 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-05-23 16:59:13 +0200 |
commit | d2ec94f0576af3f0675b171c74528cae735adef4 (patch) | |
tree | e1f1ab6a533dc20384663f6a098735273caf355d /sc | |
parent | 4f1546ca3cb47d4987a4c2d841a30a5ad376660f (diff) |
prevent invalid files if file contains currency formats
A regression from writing error cell information into the file.
Change-Id: Idb55646094fcd76912bdcd2102370681bcc8703d
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index 28a155a93b59..bc7bd4ae2b4a 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -2876,7 +2876,7 @@ void ScXMLExport::WriteCell(ScMyCell& aCell, sal_Int32 nEqualCellCount) aCell.nNumberFormat, aCell.fValue); if( getDefaultVersion() >= SvtSaveOptions::ODFVER_012 ) GetNumberFormatAttributesExportHelper()->SetNumberFormatAttributes( - aCell.nNumberFormat, aCell.fValue, false, XML_NAMESPACE_CALC_EXT); + aCell.nNumberFormat, aCell.fValue, false, XML_NAMESPACE_CALC_EXT, false); } break; case table::CellContentType_TEXT : @@ -2940,7 +2940,7 @@ void ScXMLExport::WriteCell(ScMyCell& aCell, sal_Int32 nEqualCellCount) { GetNumberFormatAttributesExportHelper()->SetNumberFormatAttributes( pFormulaCell->GetStandardFormat(*pDoc->GetFormatTable(), 0), - pDoc->GetValue( aCellPos ), false, XML_NAMESPACE_CALC_EXT); + pDoc->GetValue( aCellPos ), false, XML_NAMESPACE_CALC_EXT, false); } } } @@ -2953,7 +2953,7 @@ void ScXMLExport::WriteCell(ScMyCell& aCell, sal_Int32 nEqualCellCount) if( getDefaultVersion() >= SvtSaveOptions::ODFVER_012 ) { GetNumberFormatAttributesExportHelper()->SetNumberFormatAttributes( - aCell.nNumberFormat, pDoc->GetValue( aCellPos ), false, XML_NAMESPACE_CALC_EXT ); + aCell.nNumberFormat, pDoc->GetValue( aCellPos ), false, XML_NAMESPACE_CALC_EXT, false ); } } |