aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2001-01-26 03:10:57 +0800
committerChris Lahey <clahey@src.gnome.org>2001-01-26 03:10:57 +0800
commit593f0036f8dfa204eb0d70c6ad5b5243ee2b49a7 (patch)
treecf9ca1867c0637f1495b090d8a951b9d85a2dc99 /widgets
parentbf762467c8703006c96d4698b558a7af6d14262b (diff)
downloadgsoc2013-evolution-593f0036f8dfa204eb0d70c6ad5b5243ee2b49a7.tar.gz
gsoc2013-evolution-593f0036f8dfa204eb0d70c6ad5b5243ee2b49a7.tar.zst
gsoc2013-evolution-593f0036f8dfa204eb0d70c6ad5b5243ee2b49a7.zip
Made this correctly check for going off the end of the table.
2001-01-25 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c (move_selection): Made this correctly check for going off the end of the table. svn path=/trunk/; revision=7817
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-table-selection-model.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/table/e-table-selection-model.c b/widgets/table/e-table-selection-model.c
index 57869602a4..fba3821f8d 100644
--- a/widgets/table/e-table-selection-model.c
+++ b/widgets/table/e-table-selection-model.c
@@ -605,8 +605,10 @@ move_selection (ETableSelectionModel *selection,
row--;
else
row++;
- if (row < 0 || row > selection->row_count)
- return FALSE;
+ if (row < 0)
+ row = 0;
+ if (row >= selection->row_count)
+ row = selection->row_count - 1;
row = e_table_sorter_sorted_to_model(selection->sorter, row);
switch (selection->mode) {
rtions'>+1 * - Update EFL to 1.7.8gblach2013-08-082-4/+3 * - Update to 7.31.0sunpoet2013-07-121-0/+1 * - Update EFL libraries to 1.7.7gblach2013-05-192-6/+4 * Fix build with bmake by using gmake if make is bmakebapt2013-05-031-0/+3 * Convert devel to USES=pkgconfigbapt2013-04-231-1/+1 * - Update EFL libraries to 1.7.6(.1)gblach2013-04-232-4/+4 * - Update EFL to 1.7.5gblach2013-01-162-4/+4 * - Update Enlightenment to 0.17.0gblach2012-12-233-16/+17 * - Change my email address to gblach@FreeBSD.orggblach2012-11-041-6/+2 * - Update E17 ports:makc2012-06-274-6/+7 * - pass maintainership of this ports to new volunteerrm2012-04-111-1/+1 * - Return my ports back to the pool. I was unable to make any fixes tostas2011-10-241-1/+1 * Remove USE_GNOME=gnometarget from ports. It has been a empty keyword sincekwm2011-08-121-1/+1 * - Use quotes instead of brackets when including files using relativestas2011-07-091-1/+1 * - Update modules to 1.0.0/1miwi2011-06-252-5/+4 * - Update e17 applications suite to the recent snapshot.stas2010-12-143-31/+29