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/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=dcb0b83441cfd09110d0efee7e00ec9154a5ce51;hp=15ec793e1de9a0742afd2be7cac53199d96e6d3f 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); } //=======================================================================