From 994ca12b29381d6e33b771cfad6bfefa5d0ced90 Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 16 Mar 2026 18:51:38 +0100 Subject: [PATCH] Fixed warning. (Amend 1677236) --- imgui_widgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index 24d93bae8..22f1bae50 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp @@ -10546,7 +10546,7 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, // Click to Select a tab // Allow the close button to overlap - ImGuiButtonFlags button_flags = ((is_tab_button ? ImGuiButtonFlags_PressedOnClickRelease : ImGuiButtonFlags_PressedOnClick) | ImGuiButtonFlags_AllowOverlap); + ImGuiButtonFlags button_flags = ((ImGuiButtonFlags)(is_tab_button ? ImGuiButtonFlags_PressedOnClickRelease : ImGuiButtonFlags_PressedOnClick) | ImGuiButtonFlags_AllowOverlap); if (g.DragDropActive) button_flags |= ImGuiButtonFlags_PressedOnDragDropHold; bool hovered, held, pressed;