]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0021342: EDF 1931 GEOM: The editiojn of a group has no effect after exporting it...
authorvsr <vsr@opencascade.com>
Fri, 12 Aug 2011 12:52:08 +0000 (12:52 +0000)
committervsr <vsr@opencascade.com>
Fri, 12 Aug 2011 12:52:08 +0000 (12:52 +0000)
src/GEOMImpl/GEOMImpl_IInsertOperations.cxx

index c2facb98431381c2d4d7e358c391dc673702bdfa..55dc21581299c1c7b534f36f1029e2204567ef53 100644 (file)
@@ -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