summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
Diffstat (limited to 'windows')
-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 */