[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Mon May 2 18:01:50 PDT 2011
sc/source/filter/xml/xmlcelli.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit be929acaaa752c3b8754bb0f4ba7013ea44c1595
Author: Cassio Neri <cassio.neri at gmail.com>
Date: Sun May 1 17:58:37 2011 +0100
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.
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);
}
}
More information about the Libreoffice-commits
mailing list