From 9a390a3125826aeb7f62bdac0b6c31c576f688be Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 21 Feb 2003 00:02:04 +0000 Subject: Fix another warning 2003-02-21 Marco Pesenti Gritti * lib/widgets/ephy-autocompletion-window.c: (hack_tree_view_move_selection): Fix another warning --- lib/widgets/ephy-autocompletion-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/widgets') diff --git a/lib/widgets/ephy-autocompletion-window.c b/lib/widgets/ephy-autocompletion-window.c index 1bdf48130..2eba9da66 100644 --- a/lib/widgets/ephy-autocompletion-window.c +++ b/lib/widgets/ephy-autocompletion-window.c @@ -655,7 +655,7 @@ hack_tree_view_move_selection (GtkTreeView *tv, GtkTreeView *alternate, int dir) model = gtk_tree_view_get_model (alternate); c = gtk_tree_model_iter_n_children (model, NULL); - if (c > 0) + if (c > 0 && alternate) { gtk_tree_model_iter_nth_child (model, &iter, NULL, c - 1); p = gtk_tree_model_get_path (model, &iter); -- cgit v1.2.3