1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-12-01 02:37:24 +01:00

Nav: Fixed a crash introduced yesterday.

This commit is contained in:
omar 2017-09-30 23:46:23 +02:00
parent 0046c618b0
commit 491edfd8d8

View File

@ -5538,7 +5538,8 @@ void ImGui::FocusWindow(ImGuiWindow* window)
g.NavLayer = 0;
if (window && g.NavDisableMouseHover)
g.NavMousePosDirty = true;
window->NavRectRel[0].Min = window->NavRectRel[0].Max = window ? (window->DC.CursorStartPos - window->Pos) : ImVec2(0,0);
if (window)
window->NavRectRel[0].Min = window->NavRectRel[0].Max = window->DC.CursorStartPos - window->Pos;
g.NavWindow = window;
}