From a705262d816a7f2d9bdd5405f6c077b690219cef Mon Sep 17 00:00:00 2001 From: Lucas Rocha Date: Mon, 14 May 2007 22:07:13 +0000 Subject: fix index handling for --print-column (Fixes bug #420396). 2007-05-15 Lucas Rocha * src/tree.c (zenity_tree_dialog_toggle_get_selected): fix index handling for --print-column (Fixes bug #420396). svn path=/trunk/; revision=1211 --- src/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/tree.c b/src/tree.c index 1e67f70..09346e0 100644 --- a/src/tree.c +++ b/src/tree.c @@ -550,7 +550,7 @@ zenity_tree_dialog_toggle_get_selected (GtkTreeModel *model, GtkTreePath *path, } for (i = 0; print_columns[i] != 0; i++) { - gtk_tree_model_get_value (model, iter, print_columns[i], &value); + gtk_tree_model_get_value (model, iter, print_columns[i] - 1, &value); selected = g_slist_append (selected, g_strdup (g_value_get_string (&value))); g_value_unset (&value); -- cgit v1.2.3-2-g168b