From: srn Date: Thu, 14 Dec 2006 08:16:17 +0000 (+0000) Subject: Fixed bug in method Get (standalone case) X-Git-Tag: SALOMEDS_UnitTests_1_2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=67e9bb3269f8fe4b4632505e47764da1119db685;p=modules%2Fkernel.git Fixed bug in method Get (standalone case) --- diff --git a/src/SALOMEDS/SALOMEDS_AttributeTarget.cxx b/src/SALOMEDS/SALOMEDS_AttributeTarget.cxx index df3d011d4..fff0cb6f0 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeTarget.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeTarget.cxx @@ -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;