]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fixed bug in method Get (standalone case)
authorsrn <srn@opencascade.com>
Thu, 14 Dec 2006 08:16:17 +0000 (08:16 +0000)
committersrn <srn@opencascade.com>
Thu, 14 Dec 2006 08:16:17 +0000 (08:16 +0000)
src/SALOMEDS/SALOMEDS_AttributeTarget.cxx

index df3d011d4b8be4978edf2ae40bbe039e7c906721..fff0cb6f0e1cb4d6204524f46b0373348fa8b03e 100644 (file)
@@ -71,8 +71,10 @@ std::vector<_PTR(SObject)> SALOMEDS_AttributeTarget::Get()
   else {
     SALOMEDS::Study::ListOfSObject_var aSeq = SALOMEDS::AttributeTarget::_narrow(_corba_impl)->Get();
     aLength = aSeq->length();
-    aSO = new SALOMEDS_SObject(aSeq[i].in());
-    for (i = 0; i < aLength; i++) aVector.push_back(_PTR(SObject)(aSO));
+    for (i = 0; i < aLength; i++)  {
+       aSO = new SALOMEDS_SObject(aSeq[i].in());
+        aVector.push_back(_PTR(SObject)(aSO));
+    }
   }
 
   return aVector;