[apps/cartesian_function] Fix XYEvaluation for cartesian functions

This commit is contained in:
Léa Saviot
2019-09-09 10:11:29 +02:00
parent 7b8973f020
commit 0f8bfc4f96

View File

@@ -255,7 +255,7 @@ CartesianFunction::CartesianFunctionRecordDataBuffer * CartesianFunction::record
template<typename T>
Coordinate2D<T> CartesianFunction::templatedApproximateAtParameter(T t, Poincare::Context * context) const {
if (isCircularlyDefined(context) || t < tMin() || t > tMax()) {
return Coordinate2D<T>(NAN, NAN);
return Coordinate2D<T>(plotType() == PlotType::Cartesian ? t : NAN, NAN);
}
constexpr int bufferSize = CodePoint::MaxCodePointCharLength + 1;
char unknown[bufferSize];