aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-selection-model.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@src.gnome.org>2007-08-03 16:27:29 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-08-03 16:27:29 +0800
commit8cb6c2ae924452dd6618c9db66b96b8dd06d43ec (patch)
tree922cb0634f176055a69f34a9132fd2252da3a83a /widgets/misc/e-selection-model.c
parentad1bc58bcd6a983d38e332add29483ce4dde1d38 (diff)
downloadgsoc2013-evolution-8cb6c2ae924452dd6618c9db66b96b8dd06d43ec.tar
gsoc2013-evolution-8cb6c2ae924452dd6618c9db66b96b8dd06d43ec.tar.gz
gsoc2013-evolution-8cb6c2ae924452dd6618c9db66b96b8dd06d43ec.tar.bz2
gsoc2013-evolution-8cb6c2ae924452dd6618c9db66b96b8dd06d43ec.tar.lz
gsoc2013-evolution-8cb6c2ae924452dd6618c9db66b96b8dd06d43ec.tar.xz
gsoc2013-evolution-8cb6c2ae924452dd6618c9db66b96b8dd06d43ec.tar.zst
gsoc2013-evolution-8cb6c2ae924452dd6618c9db66b96b8dd06d43ec.zip
2007-08-03 mcrha Fix for bug #331729
svn path=/trunk/; revision=33937
Diffstat (limited to 'widgets/misc/e-selection-model.c')
-rw-r--r--widgets/misc/e-selection-model.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/widgets/misc/e-selection-model.c b/widgets/misc/e-selection-model.c
index 5c24d44f49..c44876dab3 100644
--- a/widgets/misc/e-selection-model.c
+++ b/widgets/misc/e-selection-model.c
@@ -558,7 +558,10 @@ move_selection (ESelectionModel *selection,
int col = e_selection_model_cursor_col(selection);
int row_count;
- row = e_sorter_model_to_sorted(selection->sorter, row);
+ /* there is no selected row when row is -1 */
+ if (row != -1)
+ row = e_sorter_model_to_sorted (selection->sorter, row);
+
if (up)
row--;
else