diff options
-rw-r--r-- | desktop/browser_window.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/browser_window.c b/desktop/browser_window.c index 32247062e..7b553f4e0 100644 --- a/desktop/browser_window.c +++ b/desktop/browser_window.c @@ -2599,14 +2599,14 @@ browser_window_redraw(struct browser_window *bw, struct rect content_clip; nserror res; - x /= bw->scale; - y /= bw->scale; - if (bw == NULL) { NSLOG(netsurf, INFO, "NULL browser window"); return false; } + x /= bw->scale; + y /= bw->scale; + if ((bw->current_content == NULL) && (bw->children == NULL)) { /* Browser window has no content, render blank fill */ |