]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
Integrated in BR_imps_2013 branch: 0022357: EDF NETGENPLUGIN: NETGEN options
authorimn <imn@opencascade.com>
Thu, 5 Dec 2013 12:17:36 +0000 (12:17 +0000)
committerimn <imn@opencascade.com>
Thu, 5 Dec 2013 12:17:36 +0000 (12:17 +0000)
src/GUI/NETGENPluginGUI_HypothesisCreator.cxx

index 4b1f71f8e4bf3591a90b98ee2f850dc13514c250..ce341406c507366d105b4f51e75cb1354b418332 100644 (file)
@@ -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);