From c03d6100434b811c1c0bd00fd161e8b55933b1f7 Mon Sep 17 00:00:00 2001 From: akl Date: Wed, 11 Sep 2013 12:14:44 +0000 Subject: [PATCH] Fix the case 2 (references) of 0022317: [CEA 925] GUI: An objet creation by clicking "apply" refolds the study tree --- src/GEOM_I/GEOM_Gen_i.cc | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.39.2