From: sbh Date: Mon, 13 Apr 2015 12:45:33 +0000 (+0300) Subject: Fix for parameters in double value editors X-Git-Tag: V_1.1.0~38^2^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=73275e14806a085d0bb397b8f9f6f4f90e2bb4c8;p=modules%2Fshaper.git Fix for parameters in double value editors --- diff --git a/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp b/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp index 20f522484..d3d777e33 100644 --- a/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp +++ b/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp @@ -114,7 +114,7 @@ bool ModuleBase_WidgetDoubleValue::storeValueCustom() const DataPtr aData = myFeature->data(); AttributeDoublePtr aReal = aData->real(attributeID()); aReal->setValue(mySpinBox->value()); - std::string aTextRepr; + std::string aTextRepr = aReal->text(); if (mySpinBox->hasVariable()) { aTextRepr = mySpinBox->text().toStdString(); }