Fixed PVS-Studio false positives. Not sure if there's a way to report them.
diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index 5de0dfb..71da3b4 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp
@@ -2684,7 +2684,7 @@ ClearActiveID(); else if ((g.ActiveIdSource == ImGuiInputSource_Keyboard || g.ActiveIdSource == ImGuiInputSource_Gamepad) && g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated) ClearActiveID(); - if (ShortcutsForCancel(id) && g.ActiveId == id) + if (ShortcutsForCancel(id) && g.ActiveId == id) //-V560 { // Canceling action reverts to initial value size_t data_size = DataTypeGetInfo(data_type)->Size; @@ -3301,7 +3301,7 @@ if (g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated) ClearActiveID(); } - if (ShortcutsForCancel(id) && g.ActiveId == id) + if (ShortcutsForCancel(id) && g.ActiveId == id) //-V560 { // Canceling action reverts to initial value size_t data_size = DataTypeGetInfo(data_type)->Size;