1
0
Fork 0
mirror of https://github.com/gwm17/Specter.git synced 2024-11-22 18:28:52 -05:00

Fixed misunderstanding of ImGui::Begin()/End() paradigm. Must always call End() regardless of state of Begin()

This commit is contained in:
Gordon McCann 2022-06-07 10:40:49 -04:00
parent afd17b780d
commit 29433be65a
4 changed files with 8 additions and 8 deletions

View File

@ -68,8 +68,8 @@ namespace Navigator {
ImGui::Text(m_rxnEqn.c_str());
ImGui::Text("X1 Weight: %f", x1_weight.GetValue());
ImGui::Text("X2 Weight: %f", x2_weight.GetValue());
ImGui::End();
}
ImGui::End();
}
void SPSInputLayer::UpdateWeights()
@ -137,4 +137,4 @@ namespace Navigator {
x1_weight.SetValue((0.5 - zshift / c_wireDist));
x2_weight.SetValue((1.0 - x1_weight.GetValue()));
}
}
}

View File

@ -252,8 +252,8 @@ namespace Navigator {
ImGui::TreePop();
}
}
ImGui::End();
}
ImGui::End();
if(ImGui::Begin(ICON_FA_CUT " Cuts"))
{
@ -267,8 +267,8 @@ namespace Navigator {
ImGui::TreePop();
}
}
ImGui::End();
}
ImGui::End();
ImGui::End();
}

View File

@ -163,8 +163,8 @@ namespace Navigator {
}
}
}
ImGui::End();
}
ImGui::End();
return m_result;
}

View File

@ -109,13 +109,13 @@ namespace Navigator {
}
private:
Instrumentor::Instrumentor() :
Instrumentor() :
m_session(nullptr)
{
}
Instrumentor::~Instrumentor()
~Instrumentor()
{
EndSession();
}
@ -257,4 +257,4 @@ namespace Navigator {
#endif
#endif
#endif