Use API to test for bw content.

This commit is contained in:
Michael Drake 2014-10-25 15:44:50 +01:00
parent c4829ca636
commit 93e3d84b98

View File

@ -1413,7 +1413,7 @@ static void on_resized(ROOTWIN *rootwin)
/* resized */
toolbar_set_width(rootwin->toolbar, work.g_w);
if ( gw->browser->bw->current_content != NULL ) {
if ( browser_window_has_content(gw->browser->bw) ) {
browser_window_reformat(gw->browser->bw, true, work.g_w, work.g_h);
}
}