Various tweaks and fixes as suggested by PVS Studio (thanks PVS Studio!) [docking branch]

This commit is contained in:
omar
2019-01-16 16:19:38 +01:00
parent 32c4e01267
commit d1851ed6b7
3 changed files with 10 additions and 11 deletions

View File

@ -6527,7 +6527,7 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open,
{
// We use a variable threshold to distinguish dragging tabs within a tab bar and extracting them out of the tab bar
bool undocking_tab = (g.DragDropActive && g.DragDropPayload.SourceId == id);
if (!undocking_tab && held)
if (!undocking_tab)
{
//if (!g.IO.ConfigDockingWithShift || g.IO.KeyShift)
{