From: Clarisse Genrault Date: Wed, 15 Mar 2017 10:26:09 +0000 (+0100) Subject: Fix bug on the display of optional box. X-Git-Tag: V_2.7.0~228 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c4acae0d3180f0e704b80a60ed0d3623f69eeb85;p=modules%2Fshaper.git Fix bug on the display of optional box. --- diff --git a/src/ModuleBase/ModuleBase_WidgetOptionalBox.cpp b/src/ModuleBase/ModuleBase_WidgetOptionalBox.cpp index 73a80de18..b6d32cda6 100755 --- a/src/ModuleBase/ModuleBase_WidgetOptionalBox.cpp +++ b/src/ModuleBase/ModuleBase_WidgetOptionalBox.cpp @@ -222,16 +222,13 @@ void ModuleBase_WidgetOptionalBox::updateControlsVisibility() { if (myOptionType == GroupBox) { bool aChecked = myGroupBox->isChecked(); - if (aChecked) - ModuleBase_Tools::zeroMargins(myGroupBoxLayout); - else - ModuleBase_Tools::adjustMargins(myGroupBoxLayout); + ModuleBase_Tools::adjustMargins(myGroupBoxLayout); int aNbSubControls = myGroupBoxLayout->count(); for (int i = 0; i < aNbSubControls; i++) { QWidget* aWidget = myGroupBoxLayout->itemAt(i)->widget(); if (aWidget) - aWidget->setVisible(aChecked); + aWidget->setEnabled(aChecked); } } else {