Fix build failure

This commit is contained in:
wmayer 2013-04-10 09:41:44 +02:00
parent 7e11f28866
commit 42b54c1293

View File

@ -168,7 +168,8 @@ PyObject* GeometryCurvePy::length(PyObject *args)
double t=Precision::Confusion();
if (!PyArg_ParseTuple(args, "|ddd", &u,&v,&t))
return 0;
double len = GCPnts_AbscissaPoint::Length(GeomAdaptor_Curve(c),u,v,t);
GeomAdaptor_Curve adapt(c);
double len = GCPnts_AbscissaPoint::Length(adapt,u,v,t);
return PyFloat_FromDouble(len);
}
}