mirror of
https://github.com/ocornut/imgui.git
synced 2024-10-16 16:25:15 -05:00
MultiSelect: Fixed ImGuiSelectionBasicStorage::ApplyRequests() incorrectly maintaining selection size on SelectAll.
This commit is contained in:
parent
f3d77d8e71
commit
6c4bf8e56e
1 changed files with 1 additions and 1 deletions
|
@ -7730,7 +7730,7 @@ void ImGuiSelectionBasicStorage::ApplyRequests(ImGuiMultiSelectIO* ms_io, int it
|
||||||
Clear();
|
Clear();
|
||||||
if (req.Type == ImGuiSelectionRequestType_SelectAll)
|
if (req.Type == ImGuiSelectionRequestType_SelectAll)
|
||||||
{
|
{
|
||||||
Storage.Data.resize(0);
|
Clear();
|
||||||
Storage.Data.reserve(items_count);
|
Storage.Data.reserve(items_count);
|
||||||
for (int idx = 0; idx < items_count; idx++)
|
for (int idx = 0; idx < items_count; idx++)
|
||||||
AddItem(AdapterIndexToStorageId(this, idx));
|
AddItem(AdapterIndexToStorageId(this, idx));
|
||||||
|
|
Loading…
Reference in a new issue