]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Bug IPAL20033 Error after Close Study with Change Clipping dialog box opened. Sometim...
authordmv <dmv@opencascade.com>
Tue, 1 Jul 2008 13:26:51 +0000 (13:26 +0000)
committerdmv <dmv@opencascade.com>
Tue, 1 Jul 2008 13:26:51 +0000 (13:26 +0000)
src/SMESHGUI/SMESHGUI_ClippingDlg.cxx

index d8d9fd69dc4630e2b75339811e08f726e3d67acc..b282d8703006d3d0a592add7808ac395dbffae18 100644 (file)
@@ -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);
 }
 
 //=======================================================================