mirror of
https://github.com/penpot/penpot.git
synced 2026-09-12 23:19:28 +00:00
Merge pull request #7412 from penpot/elenatorro-fix-loop-all-ancestors
🐛 Break loop when no parent is present
This commit is contained in:
commit
bd4d576172
@ -929,6 +929,7 @@ impl Shape {
|
|||||||
// FIXME: This should panic! I've removed it temporarily until
|
// FIXME: This should panic! I've removed it temporarily until
|
||||||
// we fix the problems with shapes without parents.
|
// we fix the problems with shapes without parents.
|
||||||
// panic!("Parent can't be found");
|
// panic!("Parent can't be found");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -957,6 +958,7 @@ impl Shape {
|
|||||||
// FIXME: This should panic! I've removed it temporarily until
|
// FIXME: This should panic! I've removed it temporarily until
|
||||||
// we fix the problems with shapes without parents.
|
// we fix the problems with shapes without parents.
|
||||||
// panic!("Parent can't be found");
|
// panic!("Parent can't be found");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
matrix
|
matrix
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user