filter: Add a missing precondition

This commit is contained in:
Matthias Clasen
2019-12-08 13:08:30 -05:00
parent 08beaa6448
commit e1ab8db88d

View File

@@ -255,6 +255,8 @@ gtk_any_filter_remove (GtkAnyFilter *self,
GSequenceIter *iter;
guint length;
g_return_if_fail (GTK_IS_ANY_FILTER (self));
length = g_sequence_get_length (self->filters);
if (position >= length)
return;