From c5e983833f160443bd4ac2bbf2082b64e3458a13 Mon Sep 17 00:00:00 2001 From: dmv Date: Mon, 13 Oct 2008 11:47:53 +0000 Subject: [PATCH] Error after Close Study with Change Clipping dialog box opened. Sometimes it either crashes or hangs up. --- src/SMESHGUI/SMESHGUI_ClippingDlg.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.2