From 6fb26238a31cc474701d92a8b00c15cd434b7e16 Mon Sep 17 00:00:00 2001 From: dmv Date: Thu, 5 Mar 2009 07:53:22 +0000 Subject: [PATCH] Bug IPAL20917 5x : Error (or crash) after close without saving with deleted presentation. Regress to 4.1.4 --- src/VISUGUI/VisuGUI_Sweep.cxx | 2 +- src/VISUGUI/VisuGUI_Sweep.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/VISUGUI/VisuGUI_Sweep.cxx b/src/VISUGUI/VisuGUI_Sweep.cxx index cf33ba45..309e0c09 100644 --- a/src/VISUGUI/VisuGUI_Sweep.cxx +++ b/src/VISUGUI/VisuGUI_Sweep.cxx @@ -362,7 +362,7 @@ void VisuGUI_Sweep::onSelectionChanged() void VisuGUI_Sweep::onValueChanged( int value ) { bool anIsValidSelection = ( myColoredPrs3d != NULL ) - && (myActor.GetPointer() != NULL ); + && (myActor != NULL ); if ( !anIsValidSelection ) return; diff --git a/src/VISUGUI/VisuGUI_Sweep.h b/src/VISUGUI/VisuGUI_Sweep.h index 1055330a..9b3c9b78 100644 --- a/src/VISUGUI/VisuGUI_Sweep.h +++ b/src/VISUGUI/VisuGUI_Sweep.h @@ -130,7 +130,7 @@ private: VisuGUI* myModule; SVTK_ViewWindow* myViewWindow; - vtkSmartPointer< VISU_Actor > myActor; + VISU_Actor* myActor; SALOME::GenericObjPtr< VISU::ColoredPrs3d_i > myColoredPrs3d; }; -- 2.39.2