0022692: A wrong function is called inside the Extrema_CurveTool::IsRational
authorJGV <>
Thu, 8 Sep 2011 16:03:48 +0000 (16:03 +0000)
committerbugmaster <bugmaster@opencascade.com>
Mon, 5 Mar 2012 15:30:06 +0000 (19:30 +0400)
src/Extrema/Extrema_CurveTool.lxx

index dff224e..62639de 100755 (executable)
@@ -207,7 +207,7 @@ inline gp_Parab Extrema_CurveTool::Parabola(const Adaptor3d_Curve& C)
 
  inline Standard_Boolean Extrema_CurveTool::IsRational(const Adaptor3d_Curve& C)
 {
-  return C.Degree();
+  return C.IsRational();
 }
 
 //=======================================================================