// 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 )
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);