From d0d81c4eca6479d12b375c2e1f472fa5185a436c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 29 Oct 2018 13:57:52 +0100 Subject: [PATCH] [solver] Fix resolveLinearSystem (special case: no variable) --- apps/solver/equation_store.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/solver/equation_store.cpp b/apps/solver/equation_store.cpp index 093a10d68..ea2de4c75 100644 --- a/apps/solver/equation_store.cpp +++ b/apps/solver/equation_store.cpp @@ -193,7 +193,7 @@ EquationStore::Error EquationStore::resolveLinearSystem(Expression exactSolution Preferences::AngleUnit angleUnit = Preferences::sharedPreferences()->angleUnit(); // n unknown variables int n = 0; - while (m_variables[n++][0] != 0) {} + while (m_variables[n][0] != 0) { n++; } int m = numberOfDefinedModels(); // m equations /* Create the matrix (A | b) for the equation Ax=b */ Matrix Ab;