Bug IPAL20033 Error after Close Study with Change Clipping dialog box opened. Sometimes it either crashes or hangs up.

This commit is contained in:
dmv 2008-07-01 13:26:51 +00:00
parent 15ec793e1d
commit dcb0b83441

View File

@ -382,7 +382,9 @@ SMESHGUI_ClippingDlg::~SMESHGUI_ClippingDlg()
{
// no need to delete child widgets, Qt does it all for us
std::for_each(myPlanes.begin(),myPlanes.end(),TSetVisiblity(false));
SMESH::RenderViewWindow(SMESH::GetViewWindow(mySMESHGUI));
if (SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow(mySMESHGUI))
SMESH::RenderViewWindow(aViewWindow);
}
//=======================================================================