cycfi / elements

Elements C++ GUI library
http://cycfi.github.io/elements/
3.15k stars 235 forks source link

fix dynamic_list: subscript out of range in cleanup #303

Closed PragmaTwice closed 2 years ago

PragmaTwice commented 2 years ago

When I tried to experience the active_dynamic_list example, I found that clicking the "-" button in my environment (Windows 10, C++ 20, MSVC 2019, latest asio version) would cause the program to crash due to subscript out of bounds.

So I did a simple debug and fixed the problem :)

djowel commented 2 years ago

Good catch!