From 58a55a3180378fc0e80059da029b1d8bf27aaa2a Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 5 Jun 2007 05:15:55 +0000 Subject: [PATCH] Fix for Bug IPAL16131 - IOLS. Fatal error on Setup Animation - Properties --- src/VISU_I/VISU_TimeAnimation.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/VISU_I/VISU_TimeAnimation.cxx b/src/VISU_I/VISU_TimeAnimation.cxx index eabc3e22..b745ca80 100644 --- a/src/VISU_I/VISU_TimeAnimation.cxx +++ b/src/VISU_I/VISU_TimeAnimation.cxx @@ -1649,10 +1649,12 @@ void VISU_TimeAnimation::restoreFromStudy(_PTR(SObject) theField) for (anIter->Init(); anIter->More(); anIter->Next()) { _PTR(SObject) aRefObj = anIter->Value(); _PTR(SObject) aFieldObj; - if (!aRefObj->ReferencedObject(aFieldObj) ) continue; + if (!aRefObj->ReferencedObject(aFieldObj) ) + continue; addField(aFieldObj); - if ( isRangeDefined() ) myFieldsAbsFrames.pop_back(); + if ( isRangeDefined() ) + myFieldsAbsFrames.pop_back(); FieldData& aData = getFieldData(getNbFields()-1); @@ -1661,7 +1663,8 @@ void VISU_TimeAnimation::restoreFromStudy(_PTR(SObject) theField) anPrsIter->Init(); if (!anPrsIter->More()) continue; _PTR(SObject) aPrsObj = anPrsIter->Value(); - if (!aPrsObj->FindAttribute(anAttr, "AttributeName")) continue; + if (!aPrsObj->FindAttribute(anAttr, "AttributeName")) + continue; _PTR(AttributeName) aName (anAttr); string aStr = aName->Value(); QString strName (aStr.c_str()); @@ -1699,7 +1702,7 @@ void VISU_TimeAnimation::restoreFromStudy(_PTR(SObject) theField) VISU::Storable::TRestoringMap aPrsMap; VISU::Storable::StrToMap(strPrsIn,aPrsMap); - aData.myPrs[0]->Restore(VISU::GetSObject(aPrsObj), aPrsMap); + aData.myPrs[0]->Restore(VISU::GetSObject(aData.myField), aPrsMap); } aData.myPrs[0]->GetOffset(aData.myOffset); for (int i = 1; i < aData.myNbFrames; i++) { -- 2.39.2