]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1062: Parameter value is thrown down in the point selector control
authorspo <sergey.pokhodenko@opencascade.com>
Tue, 17 Nov 2015 11:19:56 +0000 (14:19 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Tue, 17 Nov 2015 11:20:21 +0000 (14:20 +0300)
src/ModuleBase/ModuleBase_ParamSpinBox.cpp

index bfd0823866a868242e6e83567dd7933792166e2d..43ffd34008e9576021e0a6dd5991187280759b73 100644 (file)
@@ -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);
 }