From: akl Date: Wed, 11 Sep 2013 12:14:44 +0000 (+0000) Subject: Fix the case 2 (references) of 0022317: [CEA 925] GUI: An objet creation by clicking... X-Git-Tag: BR_hydro_v_0_3_1~136 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c03d6100434b811c1c0bd00fd161e8b55933b1f7;p=modules%2Fgeom.git Fix the case 2 (references) of 0022317: [CEA 925] GUI: An objet creation by clicking "apply" refolds the study tree --- diff --git a/src/GEOM_I/GEOM_Gen_i.cc b/src/GEOM_I/GEOM_Gen_i.cc index c44b639c7..001a989a5 100644 --- a/src/GEOM_I/GEOM_Gen_i.cc +++ b/src/GEOM_I/GEOM_Gen_i.cc @@ -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();