Base: Units: return std::string
This commit is contained in:
committed by
Yorik van Havre
parent
6b6e1fbd26
commit
0907c7bfda
@@ -179,7 +179,7 @@ QString MaterialProperty::getDictionaryString() const
|
||||
auto quantity = getValue().value<Base::Quantity>();
|
||||
auto string = QString(QLatin1String("%1 %2"))
|
||||
.arg(quantity.getValue(), 0, 'g', MaterialValue::PRECISION)
|
||||
.arg(quantity.getUnit().getString());
|
||||
.arg(QString::fromStdString(quantity.getUnit().getString()));
|
||||
return string;
|
||||
}
|
||||
if (getType() == MaterialValue::Float) {
|
||||
@@ -1701,4 +1701,4 @@ App::Material Material::getMaterialAppearance() const
|
||||
}
|
||||
|
||||
return material;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user