Blob Blame History Raw
From fd8569e37467bf1d1bdc7fb3a680b1ef793cd598 Mon Sep 17 00:00:00 2001
From: Mihai Varga <mihai.varga@collabora.com>
Date: Fri, 4 Sep 2015 11:55:47 +0300
Subject: [PATCH 101/398] LOK: allow float numbers in json -> property value
 conversion

Change-Id: I866a44fcb71044d27a9bf06e2f55ca2e4135c23b
(cherry picked from commit d3c93279667badf0c0feb927e9c46af97a538d84)
---
 desktop/source/lib/init.cxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 44a9e197d77a..f15417c92d0b 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -772,6 +772,8 @@ static void jsonToPropertyValues(const char* pJSON, uno::Sequence<beans::Propert
                 aValue.Value <<= OUString::fromUtf8(rValue.c_str());
             else if (rType == "boolean")
                 aValue.Value <<= OString(rValue.c_str()).toBoolean();
+            else if (rType == "float")
+                aValue.Value <<= OString(rValue.c_str()).toFloat();
             else if (rType == "long")
                 aValue.Value <<= OString(rValue.c_str()).toInt32();
             else
-- 
2.12.0