[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - sc/source
Eike Rathke
erack at redhat.com
Wed Jul 9 11:15:23 PDT 2014
sc/source/filter/xml/xmlcelli.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit cd8acfacdc02dc6dbfc6a73ef64c5bec8eefebf4
Author: Eike Rathke <erack at redhat.com>
Date: Wed Jul 9 19:16:19 2014 +0200
resolved fdo#62250 absent value cell values are not NaN, set to 0.0
Change-Id: I41459d72adbaa8f6c0c7c22447f6eba5eb8be3e1
(cherry picked from commit fea6f83df8d2183b108695217bc4ff7a93e942c9)
Reviewed-on: https://gerrit.libreoffice.org/10174
Reviewed-by: Kohei Yoshida <libreoffice at kohei.us>
Tested-by: Kohei Yoshida <libreoffice at kohei.us>
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx
index 4e4c552..d8d409a 100644
--- a/sc/source/filter/xml/xmlcelli.cxx
+++ b/sc/source/filter/xml/xmlcelli.cxx
@@ -1157,6 +1157,12 @@ void ScXMLTableRowCellContext::PutValueCell( const ScAddress& rCurrentPos )
}
else //regular value cell
{
+ // fdo#62250 absent values are not NaN, set to 0.0
+ // PutValueCell() is called only for a known cell value type,
+ // bIsEmpty==false in all these cases, no sense to check it here.
+ if (::rtl::math::isNan( fValue))
+ fValue = 0.0;
+
// #i62435# Initialize the value cell's script type if the default
// style's number format is latin-only. If the cell uses a different
// format, the script type will be reset when the style is applied.
More information about the Libreoffice-commits
mailing list