mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-29 03:00:32 +05:00
0020564: EDF 1156 SMESH: SIGSEGV when closing Salome if a clipping plane was defined
This commit is contained in:
parent
ad1014d43c
commit
905b855999
@ -72,7 +72,7 @@
|
|||||||
|
|
||||||
class OrientedPlane: public vtkPlane
|
class OrientedPlane: public vtkPlane
|
||||||
{
|
{
|
||||||
SVTK_ViewWindow* myViewWindow;
|
QPointer<SVTK_ViewWindow> myViewWindow;
|
||||||
|
|
||||||
vtkDataSetMapper* myMapper;
|
vtkDataSetMapper* myMapper;
|
||||||
|
|
||||||
@ -168,7 +168,8 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
~OrientedPlane(){
|
~OrientedPlane(){
|
||||||
myViewWindow->RemoveActor(myActor);
|
if (myViewWindow)
|
||||||
|
myViewWindow->RemoveActor(myActor);
|
||||||
myActor->Delete();
|
myActor->Delete();
|
||||||
|
|
||||||
myMapper->RemoveAllInputs();
|
myMapper->RemoveAllInputs();
|
||||||
|
Loading…
Reference in New Issue
Block a user