From: spo Date: Tue, 17 Nov 2015 11:19:56 +0000 (+0300) Subject: Issue #1062: Parameter value is thrown down in the point selector control X-Git-Tag: V_2.0.0~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b9d1a6fb9f6ddbd064eb404c71c4ab8383adadfc;p=modules%2Fshaper.git Issue #1062: Parameter value is thrown down in the point selector control --- diff --git a/src/ModuleBase/ModuleBase_ParamSpinBox.cpp b/src/ModuleBase/ModuleBase_ParamSpinBox.cpp index bfd082386..43ffd3400 100644 --- a/src/ModuleBase/ModuleBase_ParamSpinBox.cpp +++ b/src/ModuleBase/ModuleBase_ParamSpinBox.cpp @@ -101,9 +101,14 @@ QValidator::State ModuleBase_ParamSpinBox::validate(QString& str, int& pos) cons /*! \brief This function is used to set a current value for this spinbox. \param value current value + + The new value is ignored if the spinbox has a variable. */ void ModuleBase_ParamSpinBox::setValue(const double value) { + if (hasVariable()) + return; + myTextValue = ModuleBase_DoubleSpinBox::textFromValue(value); ModuleBase_DoubleSpinBox::setValue(value); }