mirror of
https://github.com/ocornut/imgui.git
synced 2026-03-27 23:37:03 -05: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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user