Base: Quantity: return std::string
This commit is contained in:
committed by
Yorik van Havre
parent
c11b37e312
commit
2ea8a633ac
@@ -68,7 +68,7 @@ Base::Quantity PropertyQuantity::createQuantityFromPy(PyObject* value)
|
||||
Base::Quantity quant;
|
||||
|
||||
if (PyUnicode_Check(value)) {
|
||||
quant = Quantity::parse(QString::fromUtf8(PyUnicode_AsUTF8(value)));
|
||||
quant = Quantity::parse(PyUnicode_AsUTF8(value));
|
||||
}
|
||||
else if (PyFloat_Check(value)) {
|
||||
quant = Quantity(PyFloat_AsDouble(value), _Unit);
|
||||
|
||||
Reference in New Issue
Block a user