diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-15 12:40:34 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-15 12:40:34 +0100 |
commit | b76e4d40a82e041b60a5888eb983ccd7f19165d2 (patch) | |
tree | a3e534f160b207bb038a669ba63824e027015b55 | |
parent | ef00272e2ffb8ffcf03e740f74691fecb682060d (diff) | |
download | netsurf-b76e4d40a82e041b60a5888eb983ccd7f19165d2.tar.gz netsurf-b76e4d40a82e041b60a5888eb983ccd7f19165d2.tar.bz2 |
Use browser_window_has_content() instead of dereffing bw.
-rw-r--r-- | windows/gui.c | 2 |
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 */ |