From: vsr Date: Fri, 12 Aug 2011 12:52:08 +0000 (+0000) Subject: 0021342: EDF 1931 GEOM: The editiojn of a group has no effect after exporting it... X-Git-Tag: Before_opencv_branch_20110913~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e2ef96313797947d1da7b56540f32b33254ab7e8;p=modules%2Fgeom.git 0021342: EDF 1931 GEOM: The editiojn of a group has no effect after exporting it to BRep --- diff --git a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx index c2facb984..55dc21581 100644 --- a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx @@ -150,8 +150,11 @@ void GEOMImpl_IInsertOperations::Export Handle(GEOM_Function) aRefFunction = theOriginal->GetLastFunction(); if (aRefFunction.IsNull()) return; //There is no function which creates an object to be exported + //Add a new result object + Handle(GEOM_Object) result = GetEngine()->AddObject(GetDocID(), GEOM_IMPORT); + //Add an Export function - Handle(GEOM_Function) aFunction = theOriginal->AddFunction(GEOMImpl_ExportDriver::GetID(), EXPORT_SHAPE); + Handle(GEOM_Function) aFunction = result->AddFunction(GEOMImpl_ExportDriver::GetID(), EXPORT_SHAPE); if (aFunction.IsNull()) return; //Check if the function is set correctly