mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-14 10:36:50 -07:00
Fix graph rendering of inequalities (#856)
* fix inequality rendering * Add comment
This commit is contained in:
parent
4bb5c39e34
commit
f1bf3354c4
1 changed files with 8 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue