[apps] Add context parameter to fix tests

This commit is contained in:
Léa Saviot
2020-01-16 16:08:39 +01:00
parent 78adca7113
commit a3a1f86f8d
12 changed files with 35 additions and 34 deletions

View File

@@ -120,7 +120,7 @@ ContinuousFunction::PlotType ContinuousFunction::plotType() const {
return recordData()->plotType();
}
void ContinuousFunction::setPlotType(PlotType newPlotType, Poincare::Preferences::AngleUnit angleUnit) {
void ContinuousFunction::setPlotType(PlotType newPlotType, Poincare::Preferences::AngleUnit angleUnit, Context * context) {
PlotType currentPlotType = plotType();
if (newPlotType == currentPlotType) {
return;
@@ -143,7 +143,7 @@ void ContinuousFunction::setPlotType(PlotType newPlotType, Poincare::Preferences
constexpr int previousTextContentMaxSize = Constant::MaxSerializedExpressionSize;
char previousTextContent[previousTextContentMaxSize];
m_model.text(this, previousTextContent, previousTextContentMaxSize, symbol());
setContent(previousTextContent);
setContent(previousTextContent, context);
// Handle parametric function switch
if (currentPlotType == PlotType::Parametric) {