[apps/statistics] Reload CurveView before drawing histogram labels

This commit is contained in:
Hugo Saint-Vignes
2021-01-05 15:54:15 +01:00
committed by LeaNumworks
parent a42208f773
commit 83722342f7
3 changed files with 14 additions and 2 deletions

View File

@@ -27,6 +27,9 @@ HistogramController::HistogramController(Responder * parentResponder, InputEvent
void HistogramController::setCurrentDrawnSeries(int series) {
initYRangeParameters(series);
/* The range of it CurveView has changed, the CurveView must be reloaded.
* See comment in HistogramView::drawRect. */
m_view.dataViewAtIndex(series)->CurveView::reload();
}
StackViewController * HistogramController::stackController() {