Skip to content

Commit 604957e

Browse files
committed
TestSuite: fixed a conflicting ID in "table_width_explicit", "table_auto_resize"
1 parent 4f4ad33 commit 604957e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

imgui_test_suite/imgui_tests_tables.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ void RegisterTests_Table(ImGuiTestEngine* e)
351351
for (int row_n = 0; row_n < 5; row_n++)
352352
{
353353
ImGui::TableNextRow();
354+
ImGui::PushID(row_n);
354355

355356
for (int column_n = 0; column_n < 4; column_n++)
356357
{
@@ -362,6 +363,7 @@ void RegisterTests_Table(ImGuiTestEngine* e)
362363
else
363364
ImGui::Button(Str16f("Width %d", 50 + column_n * 10).c_str(), ImVec2(50.0f + column_n * 10.0f, 0.0f));
364365
}
366+
ImGui::PopID();
365367
}
366368
ImGui::EndTable();
367369
}
@@ -2544,7 +2546,7 @@ void RegisterTests_Table(ImGuiTestEngine* e)
25442546
ImGui::TableNextColumn();
25452547
ImGui::Button("test", ImVec2(50, 0));
25462548
ImGui::TableNextColumn();
2547-
ImGui::Button("test", ImVec2(101, 0));
2549+
ImGui::Button("test2", ImVec2(101, 0));
25482550
ImGuiTable* table = g.CurrentTable;
25492551
ImGuiWindow* window = g.CurrentWindow;
25502552
if (!ctx->IsFirstGuiFrame())

0 commit comments

Comments
 (0)