Update Grapher.cpp

This commit is contained in:
Alfonso Gregory 2021-07-14 20:27:17 -04:00 committed by GitHub
commit c9cc43e866
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -234,7 +234,7 @@ namespace GraphControl
// 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.
const bool keepCurrentView = equation->HasGraphError || equation->IsValidated || !equation->IsLineEnabled)
const bool keepCurrentView = equation->HasGraphError || equation->IsValidated || !equation->IsLineEnabled;
PlotGraph(keepCurrentView);
}