diff --git a/apps/statistics/histogram_controller.cpp b/apps/statistics/histogram_controller.cpp index a360a3183..4414513ac 100644 --- a/apps/statistics/histogram_controller.cpp +++ b/apps/statistics/histogram_controller.cpp @@ -80,6 +80,10 @@ void HistogramController::willExitResponderChain(Responder * nextFirstResponder) void HistogramController::highlightSelection() { HistogramView * selectedHistogramView = static_cast(m_view.dataViewAtIndex(selectedSeriesIndex())); selectedHistogramView->setHighlight(m_store->startOfBarAtIndex(selectedSeriesIndex(), *m_selectedBarIndex), m_store->endOfBarAtIndex(selectedSeriesIndex(), *m_selectedBarIndex)); + // if the selectedBar was outside of range, we need to scroll + if (m_store->scrollToSelectedBarIndex(selectedSeriesIndex(), *m_selectedBarIndex)) { + multipleDataView()->reload(); + } } Responder * HistogramController::tabController() const {