mirror of
https://github.com/ocornut/imgui.git
synced 2025-09-05 19:08:19 +00:00
MultiSelect: Fixed ImGuiSelectionBasicStorage::ApplyRequests() incorrectly maintaining selection size on SelectAll.
This commit is contained in:
@@ -7730,7 +7730,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));
|
||||
|
Reference in New Issue
Block a user