Fix graph rendering of inequalities (#856)
* fix inequality rendering * Add comment
This commit is contained in:
parent
4bb5c39e34
commit
f1bf3354c4
@ -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"<mrow><mi>plotIneq2D</mi><mfenced separators=\"\">"s;
|
||||
}
|
||||
else if (expr.find(L">=<") != wstring::npos)
|
||||
{
|
||||
return L"<mrow><mi>plotEq2d</mi><mfenced separators=\"\">"s;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user