From d13c2438763459188f2acb78dba8aa9da688c278 Mon Sep 17 00:00:00 2001 From: Ruben Dashyan Date: Tue, 25 Feb 2020 10:30:48 +0100 Subject: [PATCH] [apps/regression/graph_controller] Simplify viewWillAppear --- apps/regression/graph_controller.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/regression/graph_controller.cpp b/apps/regression/graph_controller.cpp index 3e23236ca..dd1442568 100644 --- a/apps/regression/graph_controller.cpp +++ b/apps/regression/graph_controller.cpp @@ -84,11 +84,7 @@ void GraphController::viewWillAppear() { /* Since *m_selectedDotIndex is altered by initCursorParameters(), * the following must absolutely come at the end. */ - if (*m_selectedDotIndex >= 0) { - setRoundCrossCursorView(false); - } else { - setRoundCrossCursorView(true); - } + setRoundCrossCursorView(*m_selectedDotIndex < 0); } void GraphController::selectRegressionCurve() {