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

This commit is contained in:
dmv 2008-10-13 11:47:53 +00:00
parent a44e1f088c
commit c5e983833f

View File

@ -471,7 +471,7 @@ 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));
if (mySMESHGUI)
if (SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow(mySMESHGUI))
SMESH::RenderViewWindow(aViewWindow);
}