aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-08-06 02:53:56 +0800
committerDan Winship <danw@src.gnome.org>2000-08-06 02:53:56 +0800
commit8a79e9aa2635cbcf0a719402ccac8d4497ad673f (patch)
tree18ac7f56abb4155ee10b3b944441eba34d60036d /widgets/table/e-table.c
parent51df4b80b2784ddedb81484bafc590ee1df32115 (diff)
downloadgsoc2013-evolution-8a79e9aa2635cbcf0a719402ccac8d4497ad673f.tar
gsoc2013-evolution-8a79e9aa2635cbcf0a719402ccac8d4497ad673f.tar.gz
gsoc2013-evolution-8a79e9aa2635cbcf0a719402ccac8d4497ad673f.tar.bz2
gsoc2013-evolution-8a79e9aa2635cbcf0a719402ccac8d4497ad673f.tar.lz
gsoc2013-evolution-8a79e9aa2635cbcf0a719402ccac8d4497ad673f.tar.xz
gsoc2013-evolution-8a79e9aa2635cbcf0a719402ccac8d4497ad673f.tar.zst
gsoc2013-evolution-8a79e9aa2635cbcf0a719402ccac8d4497ad673f.zip
fix
* e-table.c (e_table_get_{next,prev}_row_sorted): fix svn path=/trunk/; revision=4553
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r--widgets/table/e-table.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index c56d4ff931..d9cbbc4779 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -932,9 +932,9 @@ e_table_get_next_row_sorted (ETable *e_table,
if (e_table->sorter) {
int i;
i = e_table_sorter_model_to_sorted(e_table->sorter, model_row);
- if (i < e_table_model_row_count(e_table->model)) {
+ if (i < e_table_model_row_count(e_table->model) - 1) {
i++;
- return e_table_sorter_sorted_to_model(e_table->sorter, model_row);
+ return e_table_sorter_sorted_to_model(e_table->sorter, i);
} else
return -1;
} else
@@ -953,7 +953,7 @@ e_table_get_prev_row_sorted (ETable *e_table,
i = e_table_sorter_model_to_sorted(e_table->sorter, model_row);
i--;
if (i >= 0)
- return e_table_sorter_sorted_to_model(e_table->sorter, model_row);
+ return e_table_sorter_sorted_to_model(e_table->sorter, i);
else
return -1;
} else