summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Varga <mihai.varga@collabora.com>2015-09-04 11:55:47 +0300
committerMihai Varga <mihai.varga@collabora.com>2015-09-04 12:22:29 +0300
commitd3c93279667badf0c0feb927e9c46af97a538d84 (patch)
tree1df7f45b8aa2b2c550652bafe4a9f84a7b28cc7b
parent9640dcea46dd3201aa4c27f6a3918f7419288a2a (diff)
LOK: allow float numbers in json -> property value conversion
Change-Id: I866a44fcb71044d27a9bf06e2f55ca2e4135c23b
-rw-r--r--desktop/source/lib/init.cxx2
1 files changed, 2 insertions, 0 deletions
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