mirror of
https://github.com/allankoechke/slint.git
synced 2026-12-01 01:26:57 +00:00
In `ItemRc::find_sibling` we currently do: 1. get the range 2. check that the next index is within the range 3. call `get_subtree` The problem is that get_subtree itselg will call 'ensure_updated' which will do the relayout of the ListView and may get a different range of element. So don't query the range before and just have get_subtree to return an empty ItemWeak if we are out of the actual range. Couldn't really find a way to make a test since this is called from the accessibility code which is hard to test as is For #3700