ui/cocoa/GridLayout.m

changeset 851
367b2bbbc07e
parent 846
ffa983c223c1
--- a/ui/cocoa/GridLayout.m	Wed Oct 15 18:50:52 2025 +0200
+++ b/ui/cocoa/GridLayout.m	Thu Oct 16 10:48:16 2025 +0200
@@ -316,7 +316,7 @@
     _preferredSize.width = -1;
     _preferredSize.height = -1;
     
-    if(self.container->newline) {
+    if(self.container != nil && self.container->newline) {
         _y++;
         _x = 0;
         self.container->newline = FALSE;

mercurial