]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
IPAL21294 Change Orientation for Vector with "Create a Copy" creates an Edge.
authordmv <dmv@opencascade.com>
Mon, 31 Aug 2009 08:53:47 +0000 (08:53 +0000)
committerdmv <dmv@opencascade.com>
Mon, 31 Aug 2009 08:53:47 +0000 (08:53 +0000)
src/GEOMImpl/GEOMImpl_IHealingOperations.cxx

index 6057b7a3731eecd000d58af708e3d791d97a015c..d0892338137abdad97fd06d38e8d6630a05554d7 100644 (file)
@@ -870,7 +870,7 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::ChangeOrientationCopy (Handle(G
     return NULL; //There is no function which creates an object to be processed
 
   // Add a new object
-  Handle(GEOM_Object) aNewObject = GetEngine()->AddObject( GetDocID(), GEOM_COPY );
+  Handle(GEOM_Object) aNewObject = GetEngine()->AddObject( GetDocID(), theObject->GetType() );
 
   //Add the function
   aFunction = aNewObject->AddFunction(GEOMImpl_HealingDriver::GetID(), CHANGE_ORIENTATION);