From 788fa57a30ef63d765ed5cd9ac2fdbc700a001a2 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 28 Jul 2005 12:07:29 +0000 Subject: [PATCH] IPAL9626: Incorrect default values for Arrange presentations (from Animation db, manual arrangement mode) --- src/VISU_I/VISU_TimeAnimation.cxx | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/VISU_I/VISU_TimeAnimation.cxx b/src/VISU_I/VISU_TimeAnimation.cxx index 6710fff5..d75e4845 100644 --- a/src/VISU_I/VISU_TimeAnimation.cxx +++ b/src/VISU_I/VISU_TimeAnimation.cxx @@ -111,24 +111,8 @@ void VISU_TimeAnimation::addField (_PTR(SObject) theField) //************************************************************************ void VISU_TimeAnimation::addField (SALOMEDS::SObject_ptr theField) { - FieldData aNewData; _PTR(SObject) aField = VISU::GetClientSObject(theField, myStudy); - aNewData.myField = aField; - aNewData.myNbFrames = 0; - aNewData.myPrsType = VISU::TSCALARMAP; - VISU::Storable::TRestoringMap aMap = getMapOfValue(aNewData.myField); - aNewData.myNbTimes = VISU::Storable::FindValue(aMap,"myNbTimeStamps").toLong(); - myFieldsLst.append(aNewData); - - //find Min/Max timestamps - if ((myTimeMin == 0) && (myTimeMax == 0)) { - _PTR(ChildIterator) anIter = myStudy->NewChildIterator(aField); - anIter->Next(); // First is reference on support - myTimeMin = getTimeValue(anIter->Value()); - for(; anIter->More(); anIter->Next()) { - myTimeMax = getTimeValue(anIter->Value()); - } - } + addField(aField); } -- 2.39.2