columnview: Actually check the listview in return_if_fail()

This was missed when adding return_if_fail()s in
172cdf8e21.

Related: !7240
This commit is contained in:
Benjamin Otte
2024-05-16 02:22:17 +02:00
parent 18d2f9c8a4
commit 031109aec3

View File

@@ -2212,7 +2212,7 @@ gtk_column_view_scroll_to (GtkColumnView *self,
GtkScrollInfo *scroll)
{
g_return_if_fail (GTK_IS_COLUMN_VIEW (self));
g_return_if_fail (pos < gtk_list_base_get_n_items (GTK_LIST_BASE (self)));
g_return_if_fail (pos < gtk_list_base_get_n_items (GTK_LIST_BASE (self->listview)));
g_return_if_fail (column == NULL || GTK_IS_COLUMN_VIEW_COLUMN (column));
if (column)
{