mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Update Grapher.cpp
This commit is contained in:
parent
5410e9a1be
commit
99c44f4ef8
1 changed files with 1 additions and 5 deletions
|
@ -231,14 +231,10 @@ namespace GraphControl
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
bool keepCurrentView = true;
|
|
||||||
|
|
||||||
// If the equation has changed, the IsLineEnabled state is reset.
|
// If the equation has changed, the IsLineEnabled state is reset.
|
||||||
// This checks if the equation has been reset and sets keepCurrentView to false in this case.
|
// This checks if the equation has been reset and sets keepCurrentView to false in this case.
|
||||||
if (!equation->HasGraphError && !equation->IsValidated && equation->IsLineEnabled)
|
const bool keepCurrentView = equation->HasGraphError || equation->IsValidated || !equation->IsLineEnabled)
|
||||||
{
|
|
||||||
keepCurrentView = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
PlotGraph(keepCurrentView);
|
PlotGraph(keepCurrentView);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue