diff --git a/src/GraphControl/Control/Grapher.cpp b/src/GraphControl/Control/Grapher.cpp index fd38ef5..6cdccf9 100644 --- a/src/GraphControl/Control/Grapher.cpp +++ b/src/GraphControl/Control/Grapher.cpp @@ -289,6 +289,17 @@ namespace GraphControl co_return false; } + unique_ptr expr; + wstring parsableEquation = s_getGraphOpeningTags; + parsableEquation += equationRequest; + parsableEquation += s_getGraphClosingTags; + + // Wire up the corresponding error to an error message in the UI at some point + if (!(expr = m_solver->ParseInput(parsableEquation))) + { + co_return false; + } + request += equationRequest; }