From 7e8c3851e31686f25919a9c9f2a21e2787826b0f Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 15 May 2015 10:59:30 +0300 Subject: [PATCH] Issue #544: let to use negative values in double input --- src/ModuleBase/ModuleBase_ParamSpinBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.2