1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-09 23:54:20 +00:00

TreeNode, Tables: fixed ImGuiTreeNodeFlags_DrawLinesXXX feature when TreePop() is called in table: in no column or at top of row. (#2920)

This commit is contained in:
ocornut 2025-04-10 16:26:38 +02:00
parent 5311253468
commit 8c977bf7b3
3 changed files with 12 additions and 4 deletions

View file

@ -2494,7 +2494,7 @@ void ImGui::TablePopColumnChannel()
ImGuiTable* table = g.CurrentTable;
// Optimization: avoid PopClipRect() + SetCurrentChannel()
if (table->Flags & ImGuiTableFlags_NoClip)
if ((table->Flags & ImGuiTableFlags_NoClip) || (table->CurrentColumn == -1)) // Calling TreePop() after TableNextRow() is supported.
return;
ImGuiWindow* window = g.CurrentWindow;
const ImGuiTableColumn* column = &table->Columns[table->CurrentColumn];