Fix for bug IPAL18899 : 4x REGRESS: Dump python on the study leads to fatal error "Unknown Exception".

This commit is contained in:
mkr 2008-07-04 12:07:13 +00:00
parent 271ebfda77
commit 24523717da

View File

@ -813,9 +813,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSphere (CORBA::Double theX,
MESSAGE("GEOM_Superv_i::MakeSphepe"); MESSAGE("GEOM_Superv_i::MakeSphepe");
getBasicOp(); getBasicOp();
get3DPrimOp(); get3DPrimOp();
GEOM::GEOM_Object_var o = myBasicOp->MakePointXYZ(theX, theY, theZ); GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSpherePntR(myBasicOp->MakePointXYZ(theX, theY, theZ), theRadius);
GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSpherePntR(o, theRadius);
o->Destroy();
endService( " GEOM_Superv_i::MakeSphepe" ); endService( " GEOM_Superv_i::MakeSphepe" );
return anObj; return anObj;
} }