continue;
if (isStop) {
- aContext->ClearSelected();
- aContext->Deactivate(anAIS);
-
QColor aColor(Qt::white);
anAIS->SetColor(Quantity_Color(aColor.red()/255., aColor.green()/255., aColor.blue()/255., Quantity_TOC_RGB));
anAIS->Redisplay();
for (; aFIt != aFLast; aFIt++)
{
boost::shared_ptr<ModelAPI_Feature> aFeature = (*aFIt).first;
- if (!aFeature || !aFeature->data()->isValid()) {
+ if (!aFeature || !aFeature->data() || !aFeature->data()->isValid()) {
Handle(AIS_InteractiveObject) anAIS = (*aFIt).second;
if (!anAIS.IsNull()) {
aContext->Erase(anAIS, false);