mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[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:
committed by
LeaNumworks
parent
d13c243876
commit
7e6a601af0
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user