crash if last element is not root
This commit is contained in:
parent
5e68671828
commit
00aa01109e
@ -250,7 +250,7 @@ fn void? Ctx.frame_end(&ctx)
|
|||||||
{
|
{
|
||||||
// FIXME: this is not guaranteed to be root. the user might forget to close a div or some other element
|
// FIXME: this is not guaranteed to be root. the user might forget to close a div or some other element
|
||||||
Elem* root = ctx.get_active_div()!;
|
Elem* root = ctx.get_active_div()!;
|
||||||
root.div.layout = LAYOUT_ROW;
|
if (root.id != ROOT_ID) return WRONG_ID?;
|
||||||
|
|
||||||
// 1. clear the tree
|
// 1. clear the tree
|
||||||
ctx.tree.nuke();
|
ctx.tree.nuke();
|
||||||
|
Loading…
Reference in New Issue
Block a user