Tables: fixed an issue with TableSetupColumn() overriding ini data. (#7934)

Amend 05742f9b6f
This commit is contained in:
ocornut 2025-03-12 19:29:41 +01:00
parent de4f77b0ac
commit 6e30c42101

View file

@ -1637,7 +1637,7 @@ void ImGui::TableSetupColumn(const char* label, ImGuiTableColumnFlags flags, flo
if (table->IsInitializing)
{
ImGuiTableFlags init_flags = ~0;
if (column->WidthRequest >= 0.0f && column->StretchWeight >= 0.0f)
if (column->WidthRequest >= 0.0f || column->StretchWeight >= 0.0f)
init_flags &= ~ImGuiTableFlags_Resizable;
TableInitColumnDefaults(table, column, init_flags);
}