From a709ac2f037301a163be22bfc42bb593f8cee704 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 3 Apr 2020 12:02:46 +0200 Subject: [PATCH] App: [skip ci] handle types long and unsigned long in PropertyPlacement::setPathValue() --- src/App/PropertyGeo.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/App/PropertyGeo.cpp b/src/App/PropertyGeo.cpp index 833b8d1645..85a0b962ce 100644 --- a/src/App/PropertyGeo.cpp +++ b/src/App/PropertyGeo.cpp @@ -643,6 +643,10 @@ void PropertyPlacement::setPathValue(const ObjectIdentifier &path, const boost:: avalue = boost::any_cast(value); else if (value.type() == typeid(unsigned short)) avalue = boost::any_cast(value); + else if (value.type() == typeid(long)) + avalue = boost::any_cast(value); + else if (value.type() == typeid(unsigned long)) + avalue = boost::any_cast(value); else throw std::bad_cast();