From c551bd89abd1f6976af302732bb5999316d2182d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Tue, 23 Oct 2018 17:18:28 +0200 Subject: [PATCH] [graph] Fix assert in CalculationGraphController --- apps/graph/graph/calculation_graph_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/graph/graph/calculation_graph_controller.cpp b/apps/graph/graph/calculation_graph_controller.cpp index 0f745fe7f..1171157df 100644 --- a/apps/graph/graph/calculation_graph_controller.cpp +++ b/apps/graph/graph/calculation_graph_controller.cpp @@ -23,7 +23,7 @@ View * CalculationGraphController::view() { } void CalculationGraphController::viewWillAppear() { - assert(m_record.isNull()); + assert(!m_record.isNull()); Expression::Coordinate2D pointOfInterest = computeNewPointOfInteresetFromAbscissa(m_graphRange->xMin(), 1); if (std::isnan(pointOfInterest.abscissa)) { m_isActive = false;