summaryrefslogtreecommitdiff
path: root/desktop/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/tree.c')
-rw-r--r--desktop/tree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop/tree.c b/desktop/tree.c
index f8105bb19..6c8071d90 100644
--- a/desktop/tree.c
+++ b/desktop/tree.c
@@ -476,11 +476,10 @@ static void tree_recalculate_node_sizes(struct tree *tree, struct node *node,
bool recalculate_sizes)
{
struct node_element *element;
- int width, height;
+ int height;
assert(node != NULL);
- width = node->box.width;
height = node->box.height;
node->box.width = 0;
node->box.height = 0;