summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-25 10:43:13 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-25 10:43:13 (EDT)
commit46876f615c096a0ba85cd40b2494cfbaaec186b5 (patch)
treecdfc48f9d050664645460e45637ce38b92fff8ab
parent984d8958bbc5c3d4b543494fd2651bf7b38db19a (diff)
downloadmarquee-46876f615c096a0ba85cd40b2494cfbaaec186b5.zip
marquee-46876f615c096a0ba85cd40b2494cfbaaec186b5.tar.gz
marquee-46876f615c096a0ba85cd40b2494cfbaaec186b5.tar.bz2
mq_tree_remove*(): Update tree sizes
-rw-r--r--src/tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tree.c b/src/tree.c
index b80fdd4..a279fd8 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -208,6 +208,8 @@ mq_tree_remove_allocated(MqTree *node)
update_positions(node, -1);
+ update_sizes(node, -1);
+
debug_print_tree("Removed node", node);
}