From: dmv Date: Mon, 13 Oct 2008 11:47:53 +0000 (+0000) Subject: Error after Close Study with Change Clipping dialog box opened. Sometimes it either... X-Git-Tag: V5_1_0a3~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c5e983833f160443bd4ac2bbf2082b64e3458a13;p=modules%2Fsmesh.git Error after Close Study with Change Clipping dialog box opened. Sometimes it either crashes or hangs up. --- diff --git a/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx b/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx index ff76c1bee..b1cc8a6b8 100644 --- a/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx @@ -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