summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCassio Neri <cassio.neri@gmail.com>2011-05-01 17:58:37 +0100
committerKohei Yoshida <kyoshida@novell.com>2011-05-02 20:59:06 -0400
commitbe929acaaa752c3b8754bb0f4ba7013ea44c1595 (patch)
treed84f1553f833ba57c9baf09da8bb66138e35bf7b
parent45f9a8b3e2f1f4c27099f6dd5f524076fbfff3b9 (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.
-rw-r--r--sc/source/filter/xml/xmlcelli.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx
index 67d0e56de..26a29956a 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);
}
}