From f4ab94ce1c5351399686415f825cb9f025c55e91 Mon Sep 17 00:00:00 2001 From: Stephanie Anderl <46726333+sanderl@users.noreply.github.com> Date: Tue, 4 Feb 2020 13:43:00 -0800 Subject: [PATCH] Enables analysis on functions with variables (#1021) * Add Graph Options to enable analysis with variables * Remove debugging call to GetAllowKeyGraphFeaturesForFunctionsWithParameters() * Updated the variable analysis logic to use the UpdateGraphOptions method --- src/GraphControl/Control/Grapher.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/GraphControl/Control/Grapher.cpp b/src/GraphControl/Control/Grapher.cpp index d548bee..20e59a6 100644 --- a/src/GraphControl/Control/Grapher.cpp +++ b/src/GraphControl/Control/Grapher.cpp @@ -199,6 +199,10 @@ namespace GraphControl { if (auto analyzer = graph->GetAnalyzer()) { + vector equationVector; + equationVector.push_back(equation); + UpdateGraphOptions(graph->GetOptions(), equationVector); + if (analyzer->CanFunctionAnalysisBePerformed()) { if (S_OK