]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
NPAL18595: Urgent: SIGSEGV in VISU on Mandriva 2007.
authorjfa <jfa@opencascade.com>
Fri, 18 Jan 2008 09:55:54 +0000 (09:55 +0000)
committerjfa <jfa@opencascade.com>
Fri, 18 Jan 2008 09:55:54 +0000 (09:55 +0000)
src/VISU_I/VISU_Prs3d_i.cc

index 6c32b1685ff08ff2a41de27e861fbcad6567253a..466e104e164822cf97aca273b7e4ef2658e2da9f 100644 (file)
@@ -48,8 +48,7 @@ static int MYDEBUG = 0;
 
 
 //----------------------------------------------------------------------------
-VISU::Prs3d_i
-::Prs3d_i() :
+VISU::Prs3d_i::Prs3d_i() :
   PrsObject_i(SALOMEDS::Study::_nil()),
   myActorCollection(vtkActorCollection::New()),
   myIsActiveSatate(true)
@@ -96,8 +95,7 @@ namespace VISU
 }
 
 //----------------------------------------------------------------------------
-VISU::Prs3d_i
-::~Prs3d_i()
+VISU::Prs3d_i::~Prs3d_i()
 {
   if(MYDEBUG) MESSAGE("Prs3d_i::~Prs3d_i - this = "<<this);
   ProcessVoidEvent(new TInvokeSignalEvent(myRemoveActorsFromRendererSignal));
@@ -390,22 +388,21 @@ VISU::Prs3d_i
   struct TEvent: public TInvokeSignalEvent
   {
     VISU::Prs3d_i* myRemovable;
-  
+
     TEvent(const TSignal& theSignal,
           VISU::Prs3d_i* theRemovable):
       TInvokeSignalEvent(theSignal),
       myRemovable(theRemovable)
-  {}
-  
-  virtual
-  void
-  Execute()
-  {
-    TInvokeSignalEvent::Execute();
-    myRemovable->Destroy();
-  }
-};
+    {}
 
+    virtual
+    void
+    Execute()
+    {
+      //TInvokeSignalEvent::Execute();
+      myRemovable->Destroy();
+    }
+  };
 
   ProcessVoidEvent(new TEvent(myRemoveActorsFromRendererSignal, this));
 }