X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FBSplCLib%2FBSplCLib_Cache.cxx;h=2075211c4e7a60ef58433b58c6314b8b0fdb82db;hp=f835c9b9e36cd1165a1b98cf183734ec2373e9a9;hb=f732ea1ab553b92e04557e9a2252a8b36eb1af9f;hpb=ae87bb87d01660bc27090beabc1e7ea92ba1bb85 diff --git a/src/BSplCLib/BSplCLib_Cache.cxx b/src/BSplCLib/BSplCLib_Cache.cxx index f835c9b..2075211 100644 --- a/src/BSplCLib/BSplCLib_Cache.cxx +++ b/src/BSplCLib/BSplCLib_Cache.cxx @@ -111,7 +111,7 @@ void BSplCLib_Cache::CalculateDerivative(const Standard_Real& theParameter, // When the degree of curve is lesser than the requested derivative, // nullify array cells corresponding to greater derivatives Standard_Integer aDerivative = theDerivative; - if (myParams.Degree < theDerivative) + if (!myIsRational && myParams.Degree < theDerivative) { aDerivative = myParams.Degree; for (Standard_Integer ind = myParams.Degree * aDimension; ind < (theDerivative + 1) * aDimension; ind++)