diff --git a/lib/ugui.c3l/src/ugui_core.c3 b/lib/ugui.c3l/src/ugui_core.c3 index d25385b..c96725a 100644 --- a/lib/ugui.c3l/src/ugui_core.c3 +++ b/lib/ugui.c3l/src/ugui_core.c3 @@ -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 Elem* root = ctx.get_active_div()!; - root.div.layout = LAYOUT_ROW; + if (root.id != ROOT_ID) return WRONG_ID?; // 1. clear the tree ctx.tree.nuke();