Mercurial > geeqie
changeset 776:9c962ffe8edc
collection_table_find_data_by_coord(): tidy up.
author | zas_ |
---|---|
date | Tue, 03 Jun 2008 08:53:53 +0000 |
parents | 85253619d522 |
children | 088b71bf5715 |
files | src/collect-table.c |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/collect-table.c Tue Jun 03 07:37:24 2008 +0000 +++ b/src/collect-table.c Tue Jun 03 08:53:53 2008 +0000 @@ -143,13 +143,11 @@ gtk_tree_path_free(tpath); gtk_tree_model_get(store, &row, CTABLE_COLUMN_POINTER, &list, -1); + if (!list) return NULL; n = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(column), "column_number")); - if (list) - { - if (iter) *iter = row; - return g_list_nth_data(list, n); - } + if (iter) *iter = row; + return g_list_nth_data(list, n); } return NULL;