Kaydet (Commit) e068b3c1 authored tarafından Mihai Varga's avatar Mihai Varga Kaydeden (comit) Jan Holesovsky

LOK: allow float numbers in json -> property value conversion

Change-Id: I866a44fcb71044d27a9bf06e2f55ca2e4135c23b
üst d4c59bf4
...@@ -772,6 +772,8 @@ static void jsonToPropertyValues(const char* pJSON, uno::Sequence<beans::Propert ...@@ -772,6 +772,8 @@ static void jsonToPropertyValues(const char* pJSON, uno::Sequence<beans::Propert
aValue.Value <<= OUString::fromUtf8(rValue.c_str()); aValue.Value <<= OUString::fromUtf8(rValue.c_str());
else if (rType == "boolean") else if (rType == "boolean")
aValue.Value <<= OString(rValue.c_str()).toBoolean(); aValue.Value <<= OString(rValue.c_str()).toBoolean();
else if (rType == "float")
aValue.Value <<= OString(rValue.c_str()).toFloat();
else if (rType == "long") else if (rType == "long")
aValue.Value <<= OString(rValue.c_str()).toInt32(); aValue.Value <<= OString(rValue.c_str()).toInt32();
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment