From b9d1a6fb9f6ddbd064eb404c71c4ab8383adadfc Mon Sep 17 00:00:00 2001 From: spo Date: Tue, 17 Nov 2015 14:19:56 +0300 Subject: [PATCH] Issue #1062: Parameter value is thrown down in the point selector control --- src/ModuleBase/ModuleBase_ParamSpinBox.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ModuleBase/ModuleBase_ParamSpinBox.cpp b/src/ModuleBase/ModuleBase_ParamSpinBox.cpp index bfd082386..43ffd3400 100644 --- a/src/ModuleBase/ModuleBase_ParamSpinBox.cpp +++ b/src/ModuleBase/ModuleBase_ParamSpinBox.cpp @@ -101,9 +101,14 @@ QValidator::State ModuleBase_ParamSpinBox::validate(QString& str, int& pos) cons /*! \brief This function is used to set a current value for this spinbox. \param value current value + + The new value is ignored if the spinbox has a variable. */ void ModuleBase_ParamSpinBox::setValue(const double value) { + if (hasVariable()) + return; + myTextValue = ModuleBase_DoubleSpinBox::textFromValue(value); ModuleBase_DoubleSpinBox::setValue(value); } -- 2.39.2