Code corrected to make a copy of temporary object for its further use
//
switch ( myBasisCurve->GetType()) {
case GeomAbs_Line: {
- const gp_Ax1& Axe = (myBasisCurve->Line()).Position();
+ gp_Ax1 Axe = myBasisCurve->Line().Position();
if (myAxis.IsParallel(Axe, TolAng)) {
bRet=GeomAbs_Cylinder;
Standard_Real MajorRadius, aR;
gp_Lin aLin(myAxis);
//
- const gp_Circ& C=myBasisCurve->Circle();
- const gp_Pnt& aLC=C.Location();
+ gp_Circ C = myBasisCurve->Circle();
+ const gp_Pnt& aLC = C.Location();
aR=C.Radius();
//