Fix the case 2 (references) of 0022317: [CEA 925] GUI: An objet creation by clicking "apply" refolds the study tree

This commit is contained in:
akl 2013-09-11 12:14:44 +00:00
parent e7b562779c
commit c03d610043

View File

@ -806,6 +806,7 @@ SALOMEDS::SObject_ptr GEOM_Gen_i::AddInStudy (SALOMEDS::Study_ptr theStudy,
aPrevID = anID.in();
SALOMEDS::SObject_wrap aSubSO = aStudyBuilder->NewObject(aResultSO);
aStudyBuilder->Addreference(aSubSO, aSO);
theStudy->GetUseCaseBuilder()->AppendTo( aResultSO, aSubSO );
}
return aResultSO._retn();