ui/cocoa/GridLayout.m

changeset 851
367b2bbbc07e
parent 846
ffa983c223c1
equal deleted inserted replaced
850:3e1c3f4e2ad4 851:367b2bbbc07e
314 314
315 - (void) addView:(NSView*)view layout:(UiLayout*)layout { 315 - (void) addView:(NSView*)view layout:(UiLayout*)layout {
316 _preferredSize.width = -1; 316 _preferredSize.width = -1;
317 _preferredSize.height = -1; 317 _preferredSize.height = -1;
318 318
319 if(self.container->newline) { 319 if(self.container != nil && self.container->newline) {
320 _y++; 320 _y++;
321 _x = 0; 321 _x = 0;
322 self.container->newline = FALSE; 322 self.container->newline = FALSE;
323 } 323 }
324 324

mercurial