Merge pull request #7412 from penpot/elenatorro-fix-loop-all-ancestors

🐛 Break loop when no parent is present
This commit is contained in:
Aitor Moreno 2025-10-01 13:36:16 +02:00 committed by GitHub
commit bd4d576172
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -929,6 +929,7 @@ impl Shape {
// FIXME: This should panic! I've removed it temporarily until
// we fix the problems with shapes without parents.
// panic!("Parent can't be found");
break;
}
}
@ -957,6 +958,7 @@ impl Shape {
// FIXME: This should panic! I've removed it temporarily until
// we fix the problems with shapes without parents.
// panic!("Parent can't be found");
break;
}
}
matrix