]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #586: Paprameter name suffixed by a digit
authorspo <sergey.pokhodenko@opencascade.com>
Mon, 1 Jun 2015 12:54:43 +0000 (15:54 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Mon, 1 Jun 2015 12:56:04 +0000 (15:56 +0300)
src/ModuleBase/ModuleBase_ParamSpinBox.cpp

index 5b88af890e58418d2afeb1658165f071d781170f..bcd0d28e1a149c4a01a0789c0858d7487bb1c384 100644 (file)
@@ -164,7 +164,7 @@ bool ModuleBase_ParamSpinBox::hasVariable() 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);
 }