From ed4ca35972549a51742c49f03b4781170e422e22 Mon Sep 17 00:00:00 2001 From: imn Date: Thu, 5 Dec 2013 12:17:36 +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 4b1f71f..ce34140 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->checkState() == Qt::Checked); + bool isSurfaceCurvature = (mySurfaceCurvature ? mySurfaceCurvature->checkState() == Qt::Checked : false); 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->checkState() == Qt::Checked); + bool isSurfaceCurvature = (mySurfaceCurvature ? mySurfaceCurvature->checkState() == Qt::Checked : false); bool isCustom = (myFineness->currentIndex() == UserDefined); myFineness->setEnabled(isSurfaceCurvature); myGrowthRate->setEnabled(isCustom && isSurfaceCurvature); -- 2.39.2