diff --git a/src/GraphControl/Control/Grapher.cpp b/src/GraphControl/Control/Grapher.cpp index b01f56d5..f41935ab 100644 --- a/src/GraphControl/Control/Grapher.cpp +++ b/src/GraphControl/Control/Grapher.cpp @@ -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); }