summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-24 05:04:40 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-24 05:04:40 (EDT)
commit9c87d85d565c1b12fa7a5e7c45eca091cc4b6f38 (patch)
treeb8f944da459c9591297e057dd0fb8052a0db7257
parentb91849c57cd0a1be58a9ff31526591d75e4b0b16 (diff)
downloadmarquee-9c87d85d565c1b12fa7a5e7c45eca091cc4b6f38.zip
marquee-9c87d85d565c1b12fa7a5e7c45eca091cc4b6f38.tar.gz
marquee-9c87d85d565c1b12fa7a5e7c45eca091cc4b6f38.tar.bz2
mq_tree_insert_sibling*(): Fix new node position
-rw-r--r--src/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree.c b/src/tree.c
index 490ccaf..ece8594 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -169,7 +169,7 @@ mq_tree_insert_sibling_allocated(MqTree *node, MqTree *sibling, gpointer data)
node->size = 0;
update_sizes(node, 1);
- node->position = sibling->position;
+ node->position = sibling->position + sibling->size - 1;
update_positions(node, 1);
node->data = data;