mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-23 06:25:19 -07:00
Fixed spacing and updated the moved the variableIsNotX check up into the parent if statement
This commit is contained in:
parent
a7beccb6ca
commit
e3a637893f
3 changed files with 7 additions and 8 deletions
|
@ -255,12 +255,11 @@ namespace GraphControl
|
||||||
equationVector.push_back(equation);
|
equationVector.push_back(equation);
|
||||||
UpdateGraphOptions(graph->GetOptions(), equationVector);
|
UpdateGraphOptions(graph->GetOptions(), equationVector);
|
||||||
bool variableIsNotX;
|
bool variableIsNotX;
|
||||||
if (analyzer->CanFunctionAnalysisBePerformed(variableIsNotX))
|
if (analyzer->CanFunctionAnalysisBePerformed(variableIsNotX) && !variableIsNotX)
|
||||||
{
|
{
|
||||||
if (S_OK
|
if (S_OK
|
||||||
== analyzer->PerformFunctionAnalysis(
|
== analyzer->PerformFunctionAnalysis(
|
||||||
(Graphing::Analyzer::NativeAnalysisType)Graphing::Analyzer::PerformAnalysisType::PerformAnalysisType_All)
|
(Graphing::Analyzer::NativeAnalysisType)Graphing::Analyzer::PerformAnalysisType::PerformAnalysisType_All))
|
||||||
&& !variableIsNotX)
|
|
||||||
{
|
{
|
||||||
Graphing::IGraphFunctionAnalysisData functionAnalysisData = m_solver->Analyze(analyzer.get());
|
Graphing::IGraphFunctionAnalysisData functionAnalysisData = m_solver->Analyze(analyzer.get());
|
||||||
return KeyGraphFeaturesInfo::Create(functionAnalysisData);
|
return KeyGraphFeaturesInfo::Create(functionAnalysisData);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue