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(); }