From bf75bfec48fc00f532af8926130b70c0e26eb099 Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 17 Sep 2025 19:05:22 +0200 Subject: [PATCH] Amend f6890ed mostly to please static analyzers. --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 22d371ad8..45c913a0a 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -13431,7 +13431,7 @@ static ImVec2 ImGui::NavCalcPreferredRefPos() ImRect ref_rect; if (activated_shortcut) ref_rect = g.LastItemData.NavRect; - else + else if (window != NULL) ref_rect = WindowRectRelToAbs(window, window->NavRectRel[g.NavLayer]); // Take account of upcoming scrolling (maybe set mouse pos should be done in EndFrame?)