[apps] Fix wrong method called

This commit is contained in:
Léa Saviot
2019-08-29 15:55:03 +02:00
parent 99a6451074
commit da97ffc747

View File

@@ -189,7 +189,7 @@ Coordinate2D<T> CartesianFunction::templatedApproximateAtParameter(T t, Poincare
}
constexpr int bufferSize = CodePoint::MaxCodePointCharLength + 1;
char unknown[bufferSize];
Poincare::SerializationHelper::CodePoint(unknown, bufferSize, symbol());
Poincare::SerializationHelper::CodePoint(unknown, bufferSize, UCodePointUnknownX);
PlotType type = plotType();
if (type == PlotType::Cartesian || type == PlotType::Polar) {
return Coordinate2D<T>(t, PoincareHelpers::ApproximateWithValueForSymbol(expressionReduced(context), unknown, t, context));