]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Bug IPAL20917 5x : Error (or crash) after close without saving with deleted presentat... V5_1_1rc1
authordmv <dmv@opencascade.com>
Thu, 5 Mar 2009 07:53:22 +0000 (07:53 +0000)
committerdmv <dmv@opencascade.com>
Thu, 5 Mar 2009 07:53:22 +0000 (07:53 +0000)
src/VISUGUI/VisuGUI_Sweep.cxx
src/VISUGUI/VisuGUI_Sweep.h

index cf33ba45e0431c61b4941f741fb0651e8457bf5c..309e0c09b7cecd43aea74fc8fb43e0ab1b0892ab 100644 (file)
@@ -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;
index 1055330afe5b2a718945a11ea152e5e3a02f55bc..9b3c9b784e90df2012ba27370945e6bbc1c0bb92 100644 (file)
@@ -130,7 +130,7 @@ private:
   VisuGUI*          myModule;
   SVTK_ViewWindow*  myViewWindow;
 
-  vtkSmartPointer< VISU_Actor > myActor;
+  VISU_Actor*       myActor;
   SALOME::GenericObjPtr< VISU::ColoredPrs3d_i > myColoredPrs3d;
 };