From f1bf3354c439c92503e713c969c6158d2724f406 Mon Sep 17 00:00:00 2001 From: Pepe Rivera Date: Mon, 9 Dec 2019 13:30:39 -0800 Subject: [PATCH] Fix graph rendering of inequalities (#856) * fix inequality rendering * Add comment --- src/GraphControl/Control/Equation.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/GraphControl/Control/Equation.cpp b/src/GraphControl/Control/Equation.cpp index f572ce7..838a1ba 100644 --- a/src/GraphControl/Control/Equation.cpp +++ b/src/GraphControl/Control/Equation.cpp @@ -404,7 +404,14 @@ namespace GraphControl wstring Equation::GetRequestHeader() { wstring expr{ Expression->Data() }; - if (expr.find(L">=<") != wstring::npos) + + // Check for unicode characters of less than, less than or equal to, greater than and greater than or equal to. + if (expr.find(L">><") != wstring::npos || expr.find(L"><<") != wstring::npos || expr.find(L">≥<") != wstring::npos + || expr.find(L">≤<") != wstring::npos) + { + return L"plotIneq2D"s; + } + else if (expr.find(L">=<") != wstring::npos) { return L"plotEq2d"s; }