summaryrefslogtreecommitdiff
path: root/windows/gui.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-05-15 12:40:34 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-05-15 12:40:34 +0100
commitb76e4d40a82e041b60a5888eb983ccd7f19165d2 (patch)
treea3e534f160b207bb038a669ba63824e027015b55 /windows/gui.c
parentef00272e2ffb8ffcf03e740f74691fecb682060d (diff)
downloadnetsurf-b76e4d40a82e041b60a5888eb983ccd7f19165d2.tar.gz
netsurf-b76e4d40a82e041b60a5888eb983ccd7f19165d2.tar.bz2
Use browser_window_has_content() instead of dereffing bw.
Diffstat (limited to 'windows/gui.c')
-rw-r--r--windows/gui.c2
1 files changed, 1 insertions, 1 deletions
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 */