From 62275e877a691bd2e51d1ca86bdfed49fa5cb297 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 d4dbacf1d..0c635c681 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -14139,7 +14139,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?)