mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-17 09:42:38 +03:00
Avoid a bw deref.
This commit is contained in:
parent
588b374e18
commit
e546e03895
@ -3068,7 +3068,7 @@ void ro_gui_window_scroll(wimp_scroll *scroll)
|
||||
{
|
||||
struct gui_window *g = ro_gui_window_lookup(scroll->w);
|
||||
|
||||
if (g && g->bw->current_content && ro_gui_shift_pressed()) {
|
||||
if (g && browser_window_has_content(g->bw) && ro_gui_shift_pressed()) {
|
||||
/* extended scroll request with shift held down; change zoom */
|
||||
float scale, inc;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user