Parcourir la source

Docking: Tweak and silencing PVS studio static analyzer (back to zero warnings among our selected ones).

omar il y a 6 ans
Parent
commit
87883abd86
1 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 6 6
      imgui.cpp

+ 6 - 6
imgui.cpp

@@ -11937,14 +11937,14 @@ static void ImGui::DockNodeUpdate(ImGuiDockNode* node)
         if (node->ChildNodes[1])
         if (node->ChildNodes[1])
             DockNodeUpdate(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.
 // 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.