]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug IPAL16131
authorapo <apo@opencascade.com>
Tue, 5 Jun 2007 05:15:55 +0000 (05:15 +0000)
committerapo <apo@opencascade.com>
Tue, 5 Jun 2007 05:15:55 +0000 (05:15 +0000)
 - IOLS. Fatal error on Setup Animation - Properties

src/VISU_I/VISU_TimeAnimation.cxx

index eabc3e222c791ff8c94a1f55a900210fc14172ef..b745ca80cc131bea1bd7290722e3d1139031e216 100644 (file)
@@ -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++) {