mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Fix panic when binding Path's commands property to a model entry's field
Fixes #2466
This commit is contained in:
parent
ef2120bd0a
commit
d87af7e917
3 changed files with 21 additions and 7 deletions
|
@ -32,4 +32,9 @@ export TestCase := Rectangle {
|
|||
}
|
||||
|
||||
Test2 {}
|
||||
|
||||
property <[{commands: string}]> model: [{commands: "M 0 0 L 0 100 A 1 1 0 0 0 100 100 L 100 0 Z"}];
|
||||
for entry in model: Path {
|
||||
commands: entry.commands; // Don't panic
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue