mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-18 16:49:18 +03:00
Use browser_window_has_content() instead of dereffing bw.
This commit is contained in:
parent
ef00272e2f
commit
b76e4d40a8
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user