From: vsv Date: Fri, 15 May 2015 07:59:30 +0000 (+0300) Subject: Issue #544: let to use negative values in double input X-Git-Tag: V_1.2.0~154 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7e8c3851e31686f25919a9c9f2a21e2787826b0f;p=modules%2Fshaper.git Issue #544: let to use negative values in double input --- diff --git a/src/ModuleBase/ModuleBase_ParamSpinBox.cpp b/src/ModuleBase/ModuleBase_ParamSpinBox.cpp index 41f697bf6..cce85ab35 100644 --- a/src/ModuleBase/ModuleBase_ParamSpinBox.cpp +++ b/src/ModuleBase/ModuleBase_ParamSpinBox.cpp @@ -162,7 +162,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); }