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