[solver] If one equation is undefined, display a warning

This commit is contained in:
Émilie Feral
2018-06-07 10:21:43 +02:00
parent f6bdf56c15
commit bc8dbd85c1
9 changed files with 20 additions and 5 deletions

View File

@@ -147,6 +147,9 @@ void ListController::resolveEquations() {
}
EquationStore::Error e = m_equationStore->exactSolve(static_cast<App *>(app())->localContext());
switch (e) {
case EquationStore::Error::EquationUndefined:
app()->displayWarning(I18n::Message::UndefinedEquation);
return;
case EquationStore::Error::TooManyVariables:
app()->displayWarning(I18n::Message::TooManyVariables);
return;