From: apo Date: Tue, 5 Jun 2007 05:15:55 +0000 (+0000) Subject: Fix for Bug IPAL16131 X-Git-Tag: Before_Merging_With_Windows_20jun07~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=58a55a3180378fc0e80059da029b1d8bf27aaa2a;p=modules%2Fvisu.git Fix for Bug IPAL16131 - IOLS. Fatal error on Setup Animation - Properties --- 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++) {