]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug IPAL18238
authorapo <apo@opencascade.com>
Tue, 11 Dec 2007 09:21:01 +0000 (09:21 +0000)
committerapo <apo@opencascade.com>
Tue, 11 Dec 2007 09:21:01 +0000 (09:21 +0000)
   REGR: fatal error after animation

src/OBJECT/VISU_ScalarMapAct.cxx

index 4d41417b6fe7df900895ce57bee3ec6c2bc9e4ff..908165049a5b59754e0f9898a5ec74905c6b22aa 100644 (file)
@@ -143,6 +143,7 @@ class VISU_PointsDeviceActor: public VISU_GaussDeviceActorBase
   //----------------------------------------------------------------------------
   ~VISU_PointsDeviceActor()
   {
+    SetInteractor( NULL );
     myGeomFilter->Delete();
     myEventCallbackCommand->Delete();
   }
@@ -156,9 +157,8 @@ class VISU_PointsDeviceActor: public VISU_GaussDeviceActorBase
                void* theClientData, 
                void* theCallData)
   {
-    if ( vtkObject* anObject = reinterpret_cast<vtkObject*>( theClientData ) )
-      if ( VISU_PointsDeviceActor* self = dynamic_cast<VISU_PointsDeviceActor*>( anObject ) )
-       self->OnInteractorEvent( theEvent );
+    if ( VISU_PointsDeviceActor* self = reinterpret_cast<VISU_PointsDeviceActor*>( theClientData ) )
+      self->OnInteractorEvent( theEvent );
   }
 
 
@@ -260,6 +260,8 @@ VISU_ScalarMapAct
 {
   VISU_Actor::ShallowCopyPL( thePipeLine );
 
+  myEdgeActor->GetMapper()->ScalarVisibilityOff();
+
   myPointsActor->DoMapperShallowCopy( thePipeLine->GetMapper(), false );
 
   VISU::CopyMapper( mySurfaceActor->GetMapper(), thePipeLine->GetMapper(), false );