fix bugs (#934)
This commit is contained in:
@@ -29,7 +29,9 @@ namespace GraphControl
|
||||
|
||||
// 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_view::npos || expr.find(L"><<") != wstring_view::npos || expr.find(L">≥<") != wstring_view::npos
|
||||
|| expr.find(L">≤<") != wstring_view::npos)
|
||||
|| expr.find(L">≤<") != wstring_view::npos || expr.find(8805) != wstring_view::npos || expr.find(8804) != wstring_view::npos
|
||||
|| expr.find(L"><<") != wstring_view::npos
|
||||
|| expr.find(L">><") != wstring_view::npos)
|
||||
{
|
||||
request = L"<mrow><mi>plotIneq2D</mi><mfenced separators=\"\">";
|
||||
}
|
||||
@@ -37,6 +39,12 @@ namespace GraphControl
|
||||
{
|
||||
request = L"<mrow><mi>plotEq2d</mi><mfenced separators=\"\">";
|
||||
}
|
||||
// If the expression contains both x and y but no equal or inequality sign, then that cannot be graphed.
|
||||
else if (expr.find(L">x<") != wstring_view::npos && (expr.find(L">y<") != wstring_view::npos))
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
// Else default to plot2d
|
||||
else
|
||||
{
|
||||
request = L"<mrow><mi>plot2d</mi><mfenced separators=\"\">";
|
||||
|
Reference in New Issue
Block a user