Base: Quantity: return std::string
This commit is contained in:
committed by
Yorik van Havre
parent
9f7218ac75
commit
0b3adee2ab
@@ -2294,7 +2294,7 @@ Py::Object FunctionExpression::evaluate(const Expression *expr, int f, const std
|
||||
return Py::String(args[0]->getPyValue().as_string());
|
||||
case PARSEQUANT: {
|
||||
auto quantity_text = args[0]->getPyValue().as_string();
|
||||
auto quantity_object = Quantity::parse(QString::fromStdString(quantity_text));
|
||||
auto quantity_object = Quantity::parse(quantity_text);
|
||||
return Py::asObject(new QuantityPy(new Quantity(quantity_object)));
|
||||
}
|
||||
case TRANSLATIONM: {
|
||||
|
||||
Reference in New Issue
Block a user