[apps/regression/graph_controller] Inline selectRegressionCurve in moveCursorVertically

In the graph controller, selectRegressionCurve is only called at one
place (in moveCursorVertically). In general, setRoundCrossCursorView is
called and *m_selectedDotIndex is updated. There is no reason at all to
do things differently.

Though selectRegressionCurve is called from GoToParameterController.
This commit is contained in:
Ruben Dashyan
2020-02-25 13:59:18 +01:00
committed by LeaNumworks
parent d13c243876
commit 7e6a601af0

View File

@@ -321,7 +321,8 @@ bool GraphController::moveCursorVertically(int direction) {
if (validRegression) {
// Select the regression
*m_selectedSeriesIndex = closestRegressionSeries;
selectRegressionCurve();
*m_selectedDotIndex = -1;
setRoundCrossCursorView(true);
m_cursor->moveTo(x, x, yValue(*m_selectedSeriesIndex, x, context));
return true;
}