Blame SOURCES/0101-LOK-allow-float-numbers-in-json-property-value-conve.patch

135360
From fd8569e37467bf1d1bdc7fb3a680b1ef793cd598 Mon Sep 17 00:00:00 2001
135360
From: Mihai Varga <mihai.varga@collabora.com>
135360
Date: Fri, 4 Sep 2015 11:55:47 +0300
135360
Subject: [PATCH 101/398] LOK: allow float numbers in json -> property value
135360
 conversion
135360
135360
Change-Id: I866a44fcb71044d27a9bf06e2f55ca2e4135c23b
135360
(cherry picked from commit d3c93279667badf0c0feb927e9c46af97a538d84)
135360
---
135360
 desktop/source/lib/init.cxx | 2 ++
135360
 1 file changed, 2 insertions(+)
135360
135360
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
135360
index 44a9e197d77a..f15417c92d0b 100644
135360
--- a/desktop/source/lib/init.cxx
135360
+++ b/desktop/source/lib/init.cxx
135360
@@ -772,6 +772,8 @@ static void jsonToPropertyValues(const char* pJSON, uno::Sequence
135360
                 aValue.Value <<= OUString::fromUtf8(rValue.c_str());
135360
             else if (rType == "boolean")
135360
                 aValue.Value <<= OString(rValue.c_str()).toBoolean();
135360
+            else if (rType == "float")
135360
+                aValue.Value <<= OString(rValue.c_str()).toFloat();
135360
             else if (rType == "long")
135360
                 aValue.Value <<= OString(rValue.c_str()).toInt32();
135360
             else
135360
-- 
135360
2.12.0
135360