Fix panic when binding Path's commands property to a model entry's field

Fixes #2466
This commit is contained in:
Simon Hausmann 2023-04-03 14:51:24 +02:00 committed by Simon Hausmann
parent ef2120bd0a
commit d87af7e917
3 changed files with 21 additions and 7 deletions

View file

@ -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
}
}