summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-10-05 11:29:02 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-10-05 12:04:59 +0200
commit44838c669b6bd02e14c394aebd9d19bcbf5ff409 (patch)
tree298f9ca23fb2a13ee69c2570bbd8d4d5e47ceac9 /desktop
parent153ac5dc8fd15efff49c7e428ac6a3799aded0f4 (diff)
desktop: handle sal_uInt16 in jsonToPropertyValues()
Change-Id: Ic0059404b7ccbc922703705e7818404d4904f324
Diffstat (limited to 'desktop')
-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 e902df0c71ba..7eb54d3a6064 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -903,6 +903,8 @@ static void jsonToPropertyValues(const char* pJSON, uno::Sequence<beans::Propert
aValue.Value <<= OString(rValue.c_str()).toFloat();
else if (rType == "long")
aValue.Value <<= OString(rValue.c_str()).toInt32();
+ else if (rType == "unsigned short")
+ aValue.Value <<= static_cast<sal_uInt16>(OString(rValue.c_str()).toUInt32());
else
SAL_WARN("desktop.lib", "jsonToPropertyValues: unhandled type '"<<rType<<"'");
aArguments.push_back(aValue);