From 1f3ee6f3809d1d28970ecf60a60fea83ba7a481b Mon Sep 17 00:00:00 2001 From: Pepe Rivera Date: Mon, 9 Dec 2019 12:45:09 -0800 Subject: [PATCH 1/2] fix inequality rendering --- src/GraphControl/Control/Equation.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/GraphControl/Control/Equation.cpp b/src/GraphControl/Control/Equation.cpp index f572ce7de..d038af280 100644 --- a/src/GraphControl/Control/Equation.cpp +++ b/src/GraphControl/Control/Equation.cpp @@ -404,7 +404,12 @@ namespace GraphControl wstring Equation::GetRequestHeader() { wstring expr{ Expression->Data() }; - if (expr.find(L">=<") != wstring::npos) + 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; } From 60a31de235d37f1a876a4b16691f2883a25a15b6 Mon Sep 17 00:00:00 2001 From: Pepe Rivera Date: Mon, 9 Dec 2019 13:07:49 -0800 Subject: [PATCH 2/2] Add comment --- src/GraphControl/Control/Equation.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GraphControl/Control/Equation.cpp b/src/GraphControl/Control/Equation.cpp index d038af280..838a1bacd 100644 --- a/src/GraphControl/Control/Equation.cpp +++ b/src/GraphControl/Control/Equation.cpp @@ -404,6 +404,8 @@ namespace GraphControl wstring Equation::GetRequestHeader() { wstring expr{ Expression->Data() }; + + // 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) {