//Hide thePrs3d from Viewer
SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow<SVTK_ViewWindow>(theModule);
- if (VISU_Actor* anActor = FindActor(aViewWindow, thePrs3d))
- if (anActor->GetVisibility())
- anActor->VisibilityOff();
+ if (aViewWindow)
+ if (VISU_Actor* anActor = FindActor(aViewWindow, thePrs3d))
+ if (anActor->GetVisibility())
+ anActor->VisibilityOff();
VisuGUI_DialogRunner r(aDlg);
int dlgResult = r.run( false );
QObject::tr("ERR_CANT_BUILD_PRESENTATION") + ": " + QObject::tr(exc.what()),
QObject::tr("BUT_OK"));
}
-
- if (VISU_Actor* anActor = FindActor(aViewWindow, thePrs3d))
- if (!anActor->GetVisibility())
- anActor->VisibilityOn();
+ if (aViewWindow)
+ if (VISU_Actor* anActor = FindActor(aViewWindow, thePrs3d))
+ if (!anActor->GetVisibility())
+ anActor->VisibilityOn();
delete aDlg;
}