From 67e9bb3269f8fe4b4632505e47764da1119db685 Mon Sep 17 00:00:00 2001 From: srn Date: Thu, 14 Dec 2006 08:16:17 +0000 Subject: [PATCH] Fixed bug in method Get (standalone case) --- src/SALOMEDS/SALOMEDS_AttributeTarget.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.39.2