From: dmv Date: Thu, 5 Mar 2009 07:53:22 +0000 (+0000) Subject: Bug IPAL20917 5x : Error (or crash) after close without saving with deleted presentat... X-Git-Tag: V5_1_1rc1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6fb26238a31cc474701d92a8b00c15cd434b7e16;p=modules%2Fvisu.git Bug IPAL20917 5x : Error (or crash) after close without saving with deleted presentation. Regress to 4.1.4 --- 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; };