From 539f96542f60feb5b2cd631ac7017aa9d35809ad Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 29 May 2022 23:37:10 -0500 Subject: [PATCH] work around #502 @cam900 please revert this one before attempting to diagnose the issue. --- extern/imgui_patched/imgui_tables.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extern/imgui_patched/imgui_tables.cpp b/extern/imgui_patched/imgui_tables.cpp index 9b67811c..6aea054e 100644 --- a/extern/imgui_patched/imgui_tables.cpp +++ b/extern/imgui_patched/imgui_tables.cpp @@ -1998,6 +1998,11 @@ void ImGui::TableBeginCell(ImGuiTable* table, int column_n) { // FIXME-TABLE: Could avoid this if draw channel is dummy channel? SetWindowClipRectBeforeSetChannel(window, column->ClipRect); + if (column->DrawChannelCurrent==(ImGuiTableDrawChannelIdx)-1) { + // temporary workaround for #502 + //printf("sorry!\n"); + column->DrawChannelCurrent=column_n; + } table->DrawSplitter->SetCurrentChannel(window->DrawList, column->DrawChannelCurrent); }