From 1a3285219a40960e7744567187d0ce972d845158 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 27 Apr 2020 12:44:54 +0200 Subject: [PATCH] App: [skip ci] handle types long and unsigned long in PropertyFloat::setPathValue() --- src/App/PropertyStandard.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/App/PropertyStandard.cpp b/src/App/PropertyStandard.cpp index 12ed96fbbc..5aed98efe9 100644 --- a/src/App/PropertyStandard.cpp +++ b/src/App/PropertyStandard.cpp @@ -1030,6 +1030,10 @@ void PropertyFloat::setPathValue(const ObjectIdentifier &path, const boost::any setValue(boost::any_cast(value)); else if (value.type() == typeid(Quantity)) setValue((boost::any_cast(value)).getValue()); + else if (value.type() == typeid(long)) + setValue(boost::any_cast(value)); + else if (value.type() == typeid(unsigned long)) + setValue(boost::any_cast(value)); else throw bad_cast(); }