From 0a61b13258f4fca6fb7c36fc8ac7062012686d88 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 22 Dec 2006 08:03:39 +0000 Subject: [PATCH] 1. To correct CORBA memory management 2. To restore the right version of modification time calculation --- src/VISU_I/VISU_Prs3d_i.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/VISU_I/VISU_Prs3d_i.cc b/src/VISU_I/VISU_Prs3d_i.cc index ca2d2977..887a7717 100644 --- a/src/VISU_I/VISU_Prs3d_i.cc +++ b/src/VISU_I/VISU_Prs3d_i.cc @@ -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; } -- 2.39.2