0027362: Meshing performance
[occt.git] / src / Geom2d / Geom2d_BSplineCurve_1.cxx
index 2253cf6..a4142a5 100644 (file)
@@ -678,7 +678,7 @@ Standard_Integer Geom2d_BSplineCurve::NbPoles () const
 //purpose  : 
 //=======================================================================
 
-gp_Pnt2d Geom2d_BSplineCurve::Pole (const Standard_Integer Index) const
+const gp_Pnt2d& Geom2d_BSplineCurve::Pole (const Standard_Integer Index) const
 {
   Standard_OutOfRange_Raise_if (Index < 1 || Index > poles->Length(),
                                "Geom2d_BSplineCurve::Pole");