]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #737 - parameter does not change in extrusion
authorspo <sergey.pokhodenko@opencascade.com>
Mon, 13 Jul 2015 11:45:49 +0000 (14:45 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Mon, 13 Jul 2015 11:47:42 +0000 (14:47 +0300)
src/ModuleBase/ModuleBase_ParamSpinBox.cpp

index 82e5757e5c73962857c80d8f3e537b91a0f52431..2b35449170618048bb43d1c9db729e0a3f8c275a 100644 (file)
@@ -87,8 +87,8 @@ double ModuleBase_ParamSpinBox::valueFromText(const QString& theText) const
   if (!hasVariable(theText)) {
     return ModuleBase_DoubleSpinBox::valueFromText(theText);
   }
-  // small hack: return length of the string to iniiate valuesChanged signal
-  return theText.length();
+  // small hack: return length of the string to initiate valuesChanged signal
+  return qHash(theText);
 }
 
 QString ModuleBase_ParamSpinBox::textFromValue (double theValue) const