From: apo Date: Fri, 22 Dec 2006 08:03:39 +0000 (+0000) Subject: 1. To correct CORBA memory management X-Git-Tag: WP1_2_3_25-12-2006_persistent_for_cache~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0a61b13258f4fca6fb7c36fc8ac7062012686d88;p=modules%2Fvisu.git 1. To correct CORBA memory management 2. To restore the right version of modification time calculation --- 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; }