slint/internal/compiler/generator
Olivier Goffart 5bf2c7192b Fix panic with very large ListView
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
2023-10-21 14:03:39 +02:00
..
cpp.rs C++: fix crash when accessing empty model from Slint 2023-10-19 18:09:14 +02:00
rust.rs Fix panic with very large ListView 2023-10-21 14:03:39 +02:00