GtkFontSel: Don't try to set the cursor on invalid iters

This causes a lot of warnings.
https://bugzilla.gnome.org/show_bug.cgi?id=677293
This commit is contained in:
Matthias Clasen 2012-06-01 16:58:36 -04:00
parent 1b1c7288d9
commit eeb5299573

View File

@ -1055,7 +1055,8 @@ gtk_font_selection_show_available_sizes (GtkFontSelection *fontsel,
found = TRUE;
}
gtk_tree_model_iter_next (GTK_TREE_MODEL (model), &iter);
if (!gtk_tree_model_iter_next (GTK_TREE_MODEL (model), &iter))
break;
}
if (!found)