From 0de448b5d5236226290e2ab78b0caa0bec561c47 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 25 Oct 2017 11:24:38 -0400 Subject: Revert "mq_tree_remove*(): Don't update children's positions" This reverts commit ab9570ff5e856e4cc4056cb970e732be29405444. Children's positions do need to be updated. --- diff --git a/src/tree.c b/src/tree.c index 9d547b3..61db6f6 100644 --- a/src/tree.c +++ b/src/tree.c @@ -222,10 +222,7 @@ mq_tree_remove_allocated(MqTree *node) for (child = node->first_child; child; child = child->next) { child->parent = node->parent; } - - /* Don't waste time updating children's positions. */ - node->first_child = NULL; - + update_positions(node, -1); update_sizes(node, -1); -- cgit v0.9.1