Amend f6890ed mostly to please static analyzers.
This commit is contained in:
@@ -13431,7 +13431,7 @@ static ImVec2 ImGui::NavCalcPreferredRefPos()
|
|||||||
ImRect ref_rect;
|
ImRect ref_rect;
|
||||||
if (activated_shortcut)
|
if (activated_shortcut)
|
||||||
ref_rect = g.LastItemData.NavRect;
|
ref_rect = g.LastItemData.NavRect;
|
||||||
else
|
else if (window != NULL)
|
||||||
ref_rect = WindowRectRelToAbs(window, window->NavRectRel[g.NavLayer]);
|
ref_rect = WindowRectRelToAbs(window, window->NavRectRel[g.NavLayer]);
|
||||||
|
|
||||||
// Take account of upcoming scrolling (maybe set mouse pos should be done in EndFrame?)
|
// Take account of upcoming scrolling (maybe set mouse pos should be done in EndFrame?)
|
||||||
|
|||||||
Reference in New Issue
Block a user