]> 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>
Fri, 6 Dec 2013 07:54:26 +0000 (07:54 +0000)
committerimn <imn@opencascade.com>
Fri, 6 Dec 2013 07:54:26 +0000 (07:54 +0000)
src/GUI/NETGENPluginGUI_HypothesisCreator.cxx

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