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 --- ChangeLog | 7 +++++++ lib/widgets/ephy-autocompletion-window.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 76211025e..406901407 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-02-21 Marco Pesenti Gritti + + * lib/widgets/ephy-autocompletion-window.c: + (hack_tree_view_move_selection): + + Fix another warning + 2003-02-20 Christophe Fergeau * configure.in: added fr.po to ALL_LINGUAS 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