Use API to test for browser window having a content.

This commit is contained in:
Michael Drake 2014-10-25 15:03:12 +01:00
parent 981e80c2ad
commit feb5cd04e4

View File

@ -1073,7 +1073,7 @@ static void gui_window_set_scroll(struct gui_window *g, int sx, int sy)
static void gui_window_update_extent(struct gui_window *g)
{
//CALLED();
if (!g->bw->current_content)
if (browser_window_has_content(g->bw) == false)
return;
if (g->view == NULL)