]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #544: let to use negative values in double input
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 15 May 2015 07:59:30 +0000 (10:59 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 15 May 2015 07:59:30 +0000 (10:59 +0300)
src/ModuleBase/ModuleBase_ParamSpinBox.cpp

index 41f697bf6875506aba537e2d6aff7eba253a15db..cce85ab35a9d451db0748d433ab27e9e4f678d1e 100644 (file)
@@ -162,7 +162,7 @@ bool ModuleBase_ParamSpinBox::hasVariable() const
 
 bool ModuleBase_ParamSpinBox::hasVariable(const QString& theText) const
 {
 
 bool ModuleBase_ParamSpinBox::hasVariable(const QString& theText) const
 {
-  QRegExp varNameMask("[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?");
+  QRegExp varNameMask("[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?");
   return !varNameMask.exactMatch(theText);
 }
 
   return !varNameMask.exactMatch(theText);
 }