From 725f91922d53d30572a38b306bb29c65eca89fd0 Mon Sep 17 00:00:00 2001 From: GamingMinds-DanielC Date: Mon, 26 Feb 2024 13:33:32 +0100 Subject: [PATCH] Tables: fixed TableGetHoveredRow() with overlapping frozen rows (#7350, #6588, #6347, #6250) --- imgui_tables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_tables.cpp b/imgui_tables.cpp index 0a1d3df7..5dbd0972 100644 --- a/imgui_tables.cpp +++ b/imgui_tables.cpp @@ -1890,7 +1890,7 @@ void ImGui::TableEndRow(ImGuiTable* table) if (is_visible) { // Update data for TableGetHoveredRow() - if (table->HoveredColumnBody != -1 && g.IO.MousePos.y >= bg_y1 && g.IO.MousePos.y < bg_y2) + if (table->HoveredColumnBody != -1 && g.IO.MousePos.y >= bg_y1 && g.IO.MousePos.y < bg_y2 && table_instance->HoveredRowNext < 0) table_instance->HoveredRowNext = table->CurrentRow; // Decide of background color for the row