Amend f6890ed mostly to please static analyzers.

This commit is contained in:
ocornut
2025-09-17 19:05:22 +02:00
parent f4a3529ffc
commit 62275e877a

View File

@@ -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?)