ui/common/document.c

changeset 1092
0accf125a65f
parent 1089
a3db51a94b37
child 1095
e519ecc27cfe
--- a/ui/common/document.c	Thu Apr 16 17:41:35 2026 +0200
+++ b/ui/common/document.c	Fri Apr 17 13:21:11 2026 +0200
@@ -45,6 +45,7 @@
     
     UiDoc *document = cxCalloc(a, sizeof(UiDoc) + size, 1);
     document->ctx = ctx;
+    ctx->self_doc = document;
     return &document->doc;
 }
 

mercurial