From: spo Date: Mon, 1 Jun 2015 12:54:43 +0000 (+0300) Subject: Issue #586: Paprameter name suffixed by a digit X-Git-Tag: V_1.2.1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8162d26a6ab18c8ba3e21ab1a50db6c75d587b81;p=modules%2Fshaper.git Issue #586: Paprameter name suffixed by a digit --- diff --git a/src/ModuleBase/ModuleBase_ParamSpinBox.cpp b/src/ModuleBase/ModuleBase_ParamSpinBox.cpp index 5b88af890..bcd0d28e1 100644 --- a/src/ModuleBase/ModuleBase_ParamSpinBox.cpp +++ b/src/ModuleBase/ModuleBase_ParamSpinBox.cpp @@ -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); }