diff --git a/src/Gui/QuantitySpinBox.cpp b/src/Gui/QuantitySpinBox.cpp index efb6a818c..54b818ece 100644 --- a/src/Gui/QuantitySpinBox.cpp +++ b/src/Gui/QuantitySpinBox.cpp @@ -303,9 +303,6 @@ void Gui::QuantitySpinBox::setExpression(boost::shared_ptr expr) NumberExpression * value = freecad_dynamic_cast(result.get()); if (value) { - std::stringstream s; - s << value->getValue(); - lineEdit()->setText(value->getQuantity().getUserString()); setReadOnly(true); QPixmap pixmap = getIcon(":/icons/bound-expression.svg", QSize(d_ptr->iconHeight, d_ptr->iconHeight));