Tables: fixed an issue with TableSetupColumn() overriding ini data. (#7934)
Amend 05742f9b6f
This commit is contained in:
+1
-1
@@ -1637,7 +1637,7 @@ void ImGui::TableSetupColumn(const char* label, ImGuiTableColumnFlags flags, flo
|
|||||||
if (table->IsInitializing)
|
if (table->IsInitializing)
|
||||||
{
|
{
|
||||||
ImGuiTableFlags init_flags = ~0;
|
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;
|
init_flags &= ~ImGuiTableFlags_Resizable;
|
||||||
TableInitColumnDefaults(table, column, init_flags);
|
TableInitColumnDefaults(table, column, init_flags);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user