]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020564: EDF 1156 SMESH: SIGSEGV when closing Salome if a clipping plane was defined RELIQUAT_5x_30102009
authordmv <dmv@opencascade.com>
Fri, 30 Oct 2009 13:15:15 +0000 (13:15 +0000)
committerdmv <dmv@opencascade.com>
Fri, 30 Oct 2009 13:15:15 +0000 (13:15 +0000)
src/SMESHGUI/SMESHGUI_ClippingDlg.cxx

index 1364b265d38a9436f9cea024343d8fb936f8d5dd..be11acf6cd20a9c0955a1b37113c7d7c7656c18b 100644 (file)
@@ -72,7 +72,7 @@
 
 class OrientedPlane: public vtkPlane
 {
-  SVTK_ViewWindow* myViewWindow;
+  QPointer<SVTK_ViewWindow> myViewWindow;
 
   vtkDataSetMapper* myMapper;
 
@@ -168,7 +168,8 @@ protected:
   }
 
   ~OrientedPlane(){
-    myViewWindow->RemoveActor(myActor);
+    if (myViewWindow)
+      myViewWindow->RemoveActor(myActor);
     myActor->Delete();
     
     myMapper->RemoveAllInputs();