Skip to content

Commit

Permalink
fix exception in debug mode when showing tables
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Dec 18, 2024
1 parent bbeff81 commit dbf1f2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion source/Gui/AutosaveWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void AutosaveWindow::processTable()
ImGui::TableSetupColumn("Peak value", ImGuiTableColumnFlags_DefaultSort | ImGuiTableColumnFlags_WidthFixed, scale(200.0f));
ImGui::TableSetupScrollFreeze(0, 1);
ImGui::TableHeadersRow();
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, Const::TableHeaderColor, 0);
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, Const::TableHeaderColor);

ImGuiListClipper clipper;
clipper.Begin(_savepointTable->getSize());
Expand Down
6 changes: 3 additions & 3 deletions source/Gui/BrowserWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ void BrowserWindow::processUserList()
"Reactions given", ImGuiTableColumnFlags_DefaultSort | ImGuiTableColumnFlags_WidthFixed, styleRepository.scale(100.0f));
ImGui::TableSetupScrollFreeze(0, 1);
ImGui::TableHeadersRow();
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, Const::TableHeaderColor, 0);
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, Const::TableHeaderColor);

ImGuiListClipper clipper;
clipper.Begin(_userTOs.size());
Expand Down Expand Up @@ -574,7 +574,7 @@ void BrowserWindow::processSimulationList()
ImGui::TableSetupColumn("Version", ImGuiTableColumnFlags_WidthFixed, 0.0f, NetworkResourceColumnId_Version);
ImGui::TableSetupScrollFreeze(0, 1);
ImGui::TableHeadersRow();
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, Const::TableHeaderColor, 0);
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, Const::TableHeaderColor);

//create treeTOs if sorting changed
if (auto sortSpecs = ImGui::TableGetSortSpecs()) {
Expand Down Expand Up @@ -680,7 +680,7 @@ void BrowserWindow::processGenomeList()
ImGui::TableSetupColumn("Version", ImGuiTableColumnFlags_WidthFixed, 0.0f, NetworkResourceColumnId_Version);
ImGui::TableSetupScrollFreeze(0, 1);
ImGui::TableHeadersRow();
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, Const::TableHeaderColor, 0);
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, Const::TableHeaderColor);

//create treeTOs if sorting changed
if (auto sortSpecs = ImGui::TableGetSortSpecs()) {
Expand Down
2 changes: 1 addition & 1 deletion source/Gui/SimulationParametersMainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ void SimulationParametersMainWindow::processLocationTable()
ImGui::TableSetupColumn("Strength", ImGuiTableColumnFlags_DefaultSort | ImGuiTableColumnFlags_WidthFixed, scale(100.0f));
ImGui::TableSetupScrollFreeze(0, 1);
ImGui::TableHeadersRow();
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, Const::TableHeaderColor, 0);
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, Const::TableHeaderColor);

ImGuiListClipper clipper;
clipper.Begin(_locations.size());
Expand Down

0 comments on commit dbf1f2a

Please sign in to comment.