]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
1. To correct CORBA memory management
authorapo <apo@opencascade.com>
Fri, 22 Dec 2006 08:03:39 +0000 (08:03 +0000)
committerapo <apo@opencascade.com>
Fri, 22 Dec 2006 08:03:39 +0000 (08:03 +0000)
2. To restore the right version of modification time calculation

src/VISU_I/VISU_Prs3d_i.cc

index ca2d29779166b77919acc4fc776a463631ccbd03..887a77175d510d879794f9d0c4e8701c8c117ef2 100644 (file)
@@ -226,14 +226,8 @@ VISU::Prs3d_i
 ::GetMTime()
 {
   unsigned long int aTime = myParamsTime.GetMTime();
-  if(IsPipeLineExists()){
+  if(IsPipeLineExists())
     aTime = std::max(aTime,GetPipeLine()->GetMTime());
-    // To correct modification time by actors
-    int anEnd = myActorCollection->GetNumberOfItems();
-    for(int anId = 0; anId < anEnd; anId++)
-      if(vtkObject* anObject = myActorCollection->GetItemAsObject(anId))
-         aTime = std::max(aTime,anObject->GetMTime());
-  }
   return aTime;
 }
 
@@ -279,7 +273,7 @@ VISU::Prs3d_i
 ::SaveRestoringState(SALOMEDS::Study_ptr theStudy,
                     const Storable::TRestoringMap& theMap)
 {
-  myRestoringStudy = theStudy;
+  myRestoringStudy = SALOMEDS::Study::_duplicate(theStudy);
   myRestoringMap = theMap;
   myIsRestored = false;
 }