[apps] Don't forget to call viewWillAppear

At the moment ViewController::viewWillAppear doesn't do anything, so
there is no real impact. But if we want to use it it needs to be called
from subclasses.
This commit is contained in:
Romain Goyet
2020-02-13 15:51:53 -05:00
committed by Ecco
parent c23ad0c882
commit 7f43b73049
21 changed files with 21 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ CalculationGraphController::CalculationGraphController(Responder * parentRespond
}
void CalculationGraphController::viewWillAppear() {
Shared::SimpleInteractiveCurveViewController::viewWillAppear();
assert(!m_record.isNull());
Coordinate2D<double> pointOfInterest = computeNewPointOfInterestFromAbscissa(m_graphRange->xMin(), 1);
if (std::isnan(pointOfInterest.x1())) {