From: dmv Date: Tue, 1 Jul 2008 13:26:51 +0000 (+0000) Subject: Bug IPAL20033 Error after Close Study with Change Clipping dialog box opened. Sometim... X-Git-Tag: V4_1_4a1~51 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dcb0b83441cfd09110d0efee7e00ec9154a5ce51;p=modules%2Fsmesh.git Bug IPAL20033 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 d8d9fd69d..b282d8703 100644 --- a/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx @@ -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); } //=======================================================================