From: imn Date: Fri, 6 Dec 2013 07:54:26 +0000 (+0000) Subject: Integrated in BR_imps_2013 branch: 0022357: EDF NETGENPLUGIN: NETGEN options X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ce25c56124fbb5d4584ab73ac352257fa4d02346;p=plugins%2Fnetgenplugin.git Integrated in BR_imps_2013 branch: 0022357: EDF NETGENPLUGIN: NETGEN options --- diff --git a/src/GUI/NETGENPluginGUI_HypothesisCreator.cxx b/src/GUI/NETGENPluginGUI_HypothesisCreator.cxx index ce34140..e8de863 100644 --- a/src/GUI/NETGENPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/NETGENPluginGUI_HypothesisCreator.cxx @@ -329,7 +329,7 @@ void NETGENPluginGUI_HypothesisCreator::retrieveParams() const // update widgets bool isCustom = (myFineness->currentIndex() == UserDefined); - bool isSurfaceCurvature = (mySurfaceCurvature ? mySurfaceCurvature->checkState() == Qt::Checked : false); + bool isSurfaceCurvature = (mySurfaceCurvature ? mySurfaceCurvature->checkState() == Qt::Checked : true); myFineness->setEnabled(isSurfaceCurvature); myGrowthRate->setEnabled(isCustom && isSurfaceCurvature); if ( myNbSegPerEdge ) @@ -561,7 +561,7 @@ bool NETGENPluginGUI_HypothesisCreator::readParamsFromWidgets( NetgenHypothesisD void NETGENPluginGUI_HypothesisCreator::onSurfaceCurvatureChanged() { - bool isSurfaceCurvature = (mySurfaceCurvature ? mySurfaceCurvature->checkState() == Qt::Checked : false); + bool isSurfaceCurvature = (mySurfaceCurvature ? mySurfaceCurvature->checkState() == Qt::Checked : true); bool isCustom = (myFineness->currentIndex() == UserDefined); myFineness->setEnabled(isSurfaceCurvature); myGrowthRate->setEnabled(isCustom && isSurfaceCurvature);