mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Fix dyn_index dispatch to sub-components in Rust
Correctly make the dyn_index a local index by subtracting the base
This commit is contained in:
parent
f7415171d0
commit
b0d76d1bcc
1 changed files with 1 additions and 1 deletions
|
@ -624,7 +624,7 @@ fn generate_component(
|
|||
let last_repeater: usize = repeater_count + sub_component_repeater_count - 1;
|
||||
self.repeated_visit_branch.push(quote!(
|
||||
#repeater_count..=#last_repeater => {
|
||||
#field.apply_pin(_self).visit_dynamic_children(dyn_index, order, visitor)
|
||||
#field.apply_pin(_self).visit_dynamic_children(dyn_index - #repeater_count, order, visitor)
|
||||
}
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue