Tables: Fix for calling TableSetBgColor(ImGuiTableBgTarget_CellBg) multiple times on the same cell.

This commit is contained in:
omar
2020-08-24 15:34:43 +02:00
committed by ocornut
parent 45a80716b1
commit 8e97cdf8e8
4 changed files with 10 additions and 8 deletions

View File

@ -5999,7 +5999,7 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl
// which would be advantageous since most selectable are not selected.
if (span_all_columns && window->DC.CurrentColumns)
PushColumnsBackground();
else if ((flags & ImGuiSelectableFlags_SpanAllColumns) && g.CurrentTable)
else if (span_all_columns && g.CurrentTable)
PushTableBackground();
// We use NoHoldingActiveID on menus so user can click and _hold_ on a menu then drag to browse child entries