From 5c6d2ec914efb3533fa24fc8105c6495b5c1bf5c Mon Sep 17 00:00:00 2001 From: Cassio Neri Date: Sun, 1 May 2011 17:58:37 +0100 Subject: [PATCH] Fixed bug regarding zero values not appearing (Bug 36748). In xmlcelli.cxx line 1093 the result is set only if the value is not zero. Removing the if-statement fixes the issue. --- sc/source/filter/xml/xmlcelli.cxx | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx index 67d0e56..26a2995 100644 --- a/sc/source/filter/xml/xmlcelli.cxx +++ b/sc/source/filter/xml/xmlcelli.cxx @@ -1089,7 +1089,7 @@ void ScXMLTableRowCellContext::EndElement() pCellObj->SetFormulaWithGrammar( pOUFormula->first, pOUFormula->second, eGrammar); if (bFormulaTextResult && pOUTextValue && pOUTextValue->getLength()) pCellObj->SetFormulaResultString( *pOUTextValue); - else if (fValue != 0.0) + else pCellObj->SetFormulaResultDouble( fValue); } } -- 1.7.3.4