]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
SetValue in ParamSpinBox has to be called in any case in order to initialize text
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 9 Jul 2015 09:11:40 +0000 (12:11 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 9 Jul 2015 09:11:51 +0000 (12:11 +0300)
src/ModuleBase/ModuleBase_Tools.cpp

index b3cb302bafa019c79bba39090242b325e90a5352..4dbc9ee3b5cfaeb57629567d166ae989e5c44912 100644 (file)
@@ -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);