From: nds Date: Tue, 11 Apr 2017 04:59:33 +0000 (+0300) Subject: Issue #2121: Problems when editing a radius value X-Git-Tag: V_2.7.0~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cba37fd277d14c2aec3e264eb62595b1aa9f9ea7;p=modules%2Fshaper.git Issue #2121: Problems when editing a radius value --- diff --git a/src/ModuleBase/ModuleBase_WidgetEditor.cpp b/src/ModuleBase/ModuleBase_WidgetEditor.cpp index 3adc21b0d..edaecab32 100644 --- a/src/ModuleBase/ModuleBase_WidgetEditor.cpp +++ b/src/ModuleBase/ModuleBase_WidgetEditor.cpp @@ -111,6 +111,11 @@ bool ModuleBase_WidgetEditor::showPopupEditor(const bool theSendSignals) isValueAccepted = editedValue(aValue, aText); if (isValueAccepted) { if (aText.isEmpty()) { + if (mySpinBox->hasVariable()) { + // variable text should be cleared before setting value as the value + // will not be set if there is a varable in control + ModuleBase_Tools::setSpinText(mySpinBox, ""); + } ModuleBase_Tools::setSpinValue(mySpinBox, aValue); } else { ModuleBase_Tools::setSpinText(mySpinBox, aText);