Don't need to attach children to scaffolding, because there aren't any.
svn path=/trunk/netsurf/; revision=12728
This commit is contained in:
parent
0ffcfb91b5
commit
65886b3539
|
@ -395,15 +395,10 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw,
|
|||
g->prev = NULL;
|
||||
window_list = g;
|
||||
|
||||
if (bw->parent != NULL) {
|
||||
/* Find our parent's scaffolding */
|
||||
g->scaffold = bw->parent->window->scaffold;
|
||||
} else {
|
||||
/* Now construct and attach a scaffold */
|
||||
g->scaffold = nsbeos_new_scaffolding(g);
|
||||
if (!g->scaffold)
|
||||
return NULL;
|
||||
}
|
||||
/* Now construct and attach a scaffold */
|
||||
g->scaffold = nsbeos_new_scaffolding(g);
|
||||
if (!g->scaffold)
|
||||
return NULL;
|
||||
|
||||
/* Construct our primary elements */
|
||||
BRect frame(0,0,-1,-1); // will be resized later
|
||||
|
|
Loading…
Reference in New Issue