diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index c1fd6b16..85001f5a 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp @@ -7613,7 +7613,7 @@ void ImGuiSelectionBasicStorage::ApplyRequests(ImGuiMultiSelectIO* ms_io, int it Clear(); if (req.Type == ImGuiSelectionRequestType_SelectAll) { - Storage.Data.resize(0); + Clear(); Storage.Data.reserve(items_count); for (int idx = 0; idx < items_count; idx++) AddItem(AdapterIndexToStorageId(this, idx));