From ce25c56124fbb5d4584ab73ac352257fa4d02346 Mon Sep 17 00:00:00 2001 From: imn Date: Fri, 6 Dec 2013 07:54:26 +0000 Subject: [PATCH] Integrated in BR_imps_2013 branch: 0022357: EDF NETGENPLUGIN: NETGEN options --- src/GUI/NETGENPluginGUI_HypothesisCreator.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2