work around #502

@cam900 please revert this one before attempting to diagnose the issue.
This commit is contained in:
tildearrow 2022-05-29 23:37:10 -05:00
parent 9b7145d2b0
commit 539f96542f
1 changed files with 5 additions and 0 deletions

View File

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