From: vsv Date: Thu, 9 Jul 2015 09:11:40 +0000 (+0300) Subject: SetValue in ParamSpinBox has to be called in any case in order to initialize text X-Git-Tag: V_1.3.0~59 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c6893e197e1ad268523981cbdc92c9861b7953f9;p=modules%2Fshaper.git SetValue in ParamSpinBox has to be called in any case in order to initialize text --- diff --git a/src/ModuleBase/ModuleBase_Tools.cpp b/src/ModuleBase/ModuleBase_Tools.cpp index b3cb302ba..4dbc9ee3b 100644 --- a/src/ModuleBase/ModuleBase_Tools.cpp +++ b/src/ModuleBase/ModuleBase_Tools.cpp @@ -134,8 +134,8 @@ void setSpinValue(QDoubleSpinBox* theSpin, double theValue) void setSpinValue(ModuleBase_ParamSpinBox* theSpin, double theValue) { - if (theSpin->value() == theValue) - return; + //if (theSpin->value() == theValue) + // return; bool isBlocked = theSpin->blockSignals(true); theSpin->setValue(theValue); theSpin->blockSignals(isBlocked);