mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Fix panic in the interpreter when using visible
in a ListView
This doesn't solve the issue #2537, but at least prevent the panic Drive by change to fix compile when a struct is named `Box`
This commit is contained in:
parent
8d19426723
commit
6ebfad14db
4 changed files with 76 additions and 17 deletions
|
@ -1416,7 +1416,7 @@ fn generate_item_tree(
|
|||
static ITEM_ARRAY : sp::OnceBox<
|
||||
[vtable::VOffset<#inner_component_id, ItemVTable, vtable::AllowPin>; #item_array_len]
|
||||
> = sp::OnceBox::new();
|
||||
&*ITEM_ARRAY.get_or_init(|| Box::new([#(#item_array),*]))
|
||||
&*ITEM_ARRAY.get_or_init(|| sp::Box::new([#(#item_array),*]))
|
||||
}
|
||||
|
||||
#window_adapter_functions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue