mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
gdkwindow: Fix list_insert_link_before
We forgot to set prev->next to the new link
This commit is contained in:
parent
9bda0532f8
commit
ee883a2ef5
@ -267,6 +267,9 @@ list_insert_link_before (GList *list,
|
||||
link->prev = sibling->prev;
|
||||
sibling->prev = link;
|
||||
|
||||
if (link->prev)
|
||||
link->prev->next = link;
|
||||
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user