summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-10-25 15:01:42 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-10-25 15:01:42 +0100
commit981e80c2ad74af29970d3dd7cfbe6bc1bc15521f (patch)
tree4890dbdd4c8964290dd58e4115e72aaa88979888
parent7f6024ed9a202e7eec7819de0ba5ebc36ccc7967 (diff)
downloadnetsurf-981e80c2ad74af29970d3dd7cfbe6bc1bc15521f.tar.gz
netsurf-981e80c2ad74af29970d3dd7cfbe6bc1bc15521f.tar.bz2
Don't need access to content here.
-rw-r--r--beos/window.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/beos/window.cpp b/beos/window.cpp
index 7eb8901fc..f9d9ff730 100644
--- a/beos/window.cpp
+++ b/beos/window.cpp
@@ -1016,9 +1016,7 @@ static void gui_window_redraw_window(struct gui_window *g)
static void gui_window_update_box(struct gui_window *g, const struct rect *rect)
{
- hlcache_handle *c = g->bw->current_content;
-
- if (c == NULL)
+ if (browser_window_has_content(g->bw) == false)
return;
if (g->view == NULL)