From b76e4d40a82e041b60a5888eb983ccd7f19165d2 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 15 May 2014 12:40:34 +0100 Subject: Use browser_window_has_content() instead of dereffing bw. --- windows/gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'windows') diff --git a/windows/gui.c b/windows/gui.c index 0be75e1e8..843599a73 100644 --- a/windows/gui.c +++ b/windows/gui.c @@ -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 */ -- cgit v1.2.3