diff options
author | Cassio Neri <cassio.neri@gmail.com> | 2011-05-01 17:58:37 +0100 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-05-02 20:59:06 -0400 |
commit | cd04a8d20314a86a42146208fea353c1a6d1135b (patch) | |
tree | ae8a4d7d45056e23cc8172c70fe061a7939b4a88 /sc/source/filter/xml/xmlcelli.cxx | |
parent | 66b3c5c926806c5702ceb4fdf083188b280bb8f9 (diff) |
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.
Diffstat (limited to 'sc/source/filter/xml/xmlcelli.cxx')
-rw-r--r-- | 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 06214774a91e..a7755b840bca 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); } } |