diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2018-10-04 20:23:20 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2018-10-04 20:24:10 +0100 |
commit | 7e08cf4352d41c372584db69fc59c928f63c324f (patch) | |
tree | 23272af635b0d620b1f8a6c600ebeed20517a7e8 /desktop/treeview.c | |
parent | 4a24a14b09304272349c83c57b0d202193d30d4d (diff) | |
download | netsurf-7e08cf4352d41c372584db69fc59c928f63c324f.tar.gz netsurf-7e08cf4352d41c372584db69fc59c928f63c324f.tar.bz2 |
Treeview: Fix designated struct initialisation.
Diffstat (limited to 'desktop/treeview.c')
-rw-r--r-- | desktop/treeview.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/desktop/treeview.c b/desktop/treeview.c index 48422e8e3..3db90cc41 100644 --- a/desktop/treeview.c +++ b/desktop/treeview.c @@ -4773,12 +4773,12 @@ treeview_mouse_action(treeview *tree, browser_mouse_state mouse, int x, int y) } else { /* On tree */ struct treeview_mouse_action ma = { - ma.tree = tree, - ma.mouse = mouse, - ma.x = x, - ma.y = y, - ma.current_y = search_height, - ma.search_height = search_height, + .tree = tree, + .mouse = mouse, + .x = x, + .y = y, + .current_y = search_height, + .search_height = search_height, }; treeview_walk_internal(tree, tree->root, |