From 87883abd864567614b2c8ceb8fac3ea065d5a7b1 Mon Sep 17 00:00:00 2001 From: omar Date: Tue, 26 Mar 2019 14:15:56 +0100 Subject: [PATCH] Docking: Tweak and silencing PVS studio static analyzer (back to zero warnings among our selected ones). --- imgui.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/imgui.cpp b/imgui.cpp index 93f229c3..d3c91537 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -11937,14 +11937,14 @@ static void ImGui::DockNodeUpdate(ImGuiDockNode* node) if (node->ChildNodes[1]) DockNodeUpdate(node->ChildNodes[1]); - // End host window - if (beginned_into_host_window) - End(); + // Render outer borders last (after the tab bar) + if (node->IsRootNode()) + RenderOuterBorders(host_window); } - // Render outer borders last (after the tab bar) - if (node->IsRootNode() && host_window) - RenderOuterBorders(host_window); + // End host window + if (beginned_into_host_window) //-V1020 + End(); } // Compare TabItem nodes given the last known DockOrder (will persist in .ini file as hint), used to sort tabs when multiple tabs are added on the same frame.