diff --git a/src/Mod/Assembly/App/BomObject.cpp b/src/Mod/Assembly/App/BomObject.cpp index 028dfa291c..8b0da1b42c 100644 --- a/src/Mod/Assembly/App/BomObject.cpp +++ b/src/Mod/Assembly/App/BomObject.cpp @@ -277,9 +277,7 @@ std::string BomObject::getBomPropertyValue(App::DocumentObject* obj, const std:: return propStr->getValue(); } else if (auto propQuantity = freecad_cast(prop)) { - auto unit = propQuantity->getUnit().getString(); - auto value = std::to_string(propQuantity->getValue()); - return value + " " + unit; + return propQuantity->getQuantityValue().getUserString(); } else if (auto propFloat = freecad_cast(prop)) { return std::to_string(propFloat->getValue());