From e546e03895d550eb881a687e1e2ca704aba6387c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 16 Oct 2014 22:06:32 +0100 Subject: Avoid a bw deref. --- riscos/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscos/window.c b/riscos/window.c index 2569332fd..3f29cf449 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -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; -- cgit v1.2.3