From 7ece2dfcb594c971ec18f819e54c32c6a7759ec8 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 25 May 2012 13:06:33 +0200 Subject: [PATCH] Fix child_changed update_separator code When we move a child, three childrens separators may be affected. The moved child, the one after the new position, and the one *after* the previous position (as it got a new before). However, we were looking at the one before the previous location => bug. --- egg-list-box.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egg-list-box.vala b/egg-list-box.vala index 373a75fd..21d1340e 100644 --- a/egg-list-box.vala +++ b/egg-list-box.vala @@ -139,7 +139,7 @@ public class Egg.ListBox : Container { if (info == null) return; - var prev_next = get_previous_visible (info.iter); + var prev_next = get_next_visible (info.iter); if (sort_func != null) { children.sort_changed (info.iter, do_sort);