Browse Source

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

Amend 05742f9b6f
ocornut 6 months ago
parent
commit
6e30c42101
1 changed files with 1 additions and 1 deletions
  1. 1 1
      imgui_tables.cpp

+ 1 - 1
imgui_tables.cpp

@@ -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);
     }