summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2016-12-29 14:42:25 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2016-12-29 14:42:25 +0000
commit7750d926adf3740448ec2fada2e207a4b5bd5851 (patch)
tree91ef7881c8ccd6774c6f02c6d6b4ab3a00e175eb /desktop
parent93fdbcc6de0d82323a67bc4c2d560f90a1f396cd (diff)
downloadnetsurf-7750d926adf3740448ec2fada2e207a4b5bd5851.tar.gz
netsurf-7750d926adf3740448ec2fada2e207a4b5bd5851.tar.bz2
Treeview: Allow treeview to be created "detached".
This allows treeviews to be constructed before their corewindow.
Diffstat (limited to 'desktop')
-rw-r--r--desktop/treeview.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop/treeview.c b/desktop/treeview.c
index 4c405ba3a..c348146b8 100644
--- a/desktop/treeview.c
+++ b/desktop/treeview.c
@@ -1346,8 +1346,7 @@ nserror treeview_create(treeview **tree,
nserror error;
int i;
- assert(cw_t != NULL);
- assert(cw != NULL);
+ assert((cw_t == NULL && cw == NULL) || (cw_t != NULL && cw != NULL));
assert(callbacks != NULL);
assert(fields != NULL);