]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Error after Close Study with Change Clipping dialog box opened. Sometimes it either...
authordmv <dmv@opencascade.com>
Mon, 13 Oct 2008 11:47:53 +0000 (11:47 +0000)
committerdmv <dmv@opencascade.com>
Mon, 13 Oct 2008 11:47:53 +0000 (11:47 +0000)
src/SMESHGUI/SMESHGUI_ClippingDlg.cxx

index ff76c1beeccb6e004ff83fcc0be6935d2da7263e..b1cc8a6b83cf0910fed70a92aa2dd01012cb168e 100644 (file)
@@ -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