Use browser_window_has_content() instead of dereffing bw.

This commit is contained in:
Michael Drake 2014-05-15 12:40:34 +01:00
parent ef00272e2f
commit b76e4d40a8

View File

@ -1488,7 +1488,7 @@ void gui_window_set_scroll(struct gui_window *w, int sx, int sy)
if ((w == NULL) ||
(w->bw == NULL) ||
(w->bw->current_content == NULL))
(browser_window_has_content(bw) == false))
return;
/* limit scale range */