Correction for Part feature.
else
theAction->setData(INVALID_VALUE);
}
-
- // update controls error information
- QWidget* aWidget = myPropertyPanel->headerWidget();
- if (aWidget)
- aWidget->setToolTip(getFeatureError(theFeature));
+ // some operations have no property panel, so it is important to check that it is not null
+ if (myPropertyPanel) {
+ // update controls error information
+ QWidget* aWidget = myPropertyPanel->headerWidget();
+ if (aWidget)
+ aWidget->setToolTip(getFeatureError(theFeature));
+ }
}
const char* toString(ModelAPI_ExecState theExecState)