Blame SOURCES/0001-resolved-fdo-62250-absent-value-cell-values-are-not-.patch

f085be
From 4e69127246028f72eee6279e9a810bb865ce654c Mon Sep 17 00:00:00 2001
f085be
From: Eike Rathke <erack@redhat.com>
f085be
Date: Wed, 9 Jul 2014 19:16:19 +0200
f085be
Subject: [PATCH 001/137] resolved fdo#62250 absent value cell values are not
f085be
 NaN, set to 0.0
f085be
f085be
Change-Id: I41459d72adbaa8f6c0c7c22447f6eba5eb8be3e1
f085be
(cherry picked from commit fea6f83df8d2183b108695217bc4ff7a93e942c9)
f085be
Reviewed-on: https://gerrit.libreoffice.org/10176
f085be
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
f085be
Tested-by: Kohei Yoshida <libreoffice@kohei.us>
f085be
---
f085be
 sc/source/filter/xml/xmlcelli.cxx | 6 ++++++
f085be
 1 file changed, 6 insertions(+)
f085be
f085be
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx
f085be
index 41e6111..a3321c2 100644
f085be
--- a/sc/source/filter/xml/xmlcelli.cxx
f085be
+++ b/sc/source/filter/xml/xmlcelli.cxx
f085be
@@ -1151,6 +1151,12 @@ void ScXMLTableRowCellContext::PutValueCell( const ScAddress& rCurrentPos )
f085be
     }
f085be
     else  //regular value cell
f085be
     {
f085be
+        // fdo#62250 absent values are not NaN, set to 0.0
f085be
+        // PutValueCell() is called only for a known cell value type,
f085be
+        // bIsEmpty==false in all these cases, no sense to check it here.
f085be
+        if (::rtl::math::isNan( fValue))
f085be
+            fValue = 0.0;
f085be
+
f085be
         // #i62435# Initialize the value cell's script type if the default
f085be
         // style's number format is latin-only. If the cell uses a different
f085be
         // format, the script type will be reset when the style is applied.
f085be
-- 
f085be
1.9.3
f085be