From 8cb6c2ae924452dd6618c9db66b96b8dd06d43ec Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 3 Aug 2007 08:27:29 +0000 Subject: 2007-08-03 mcrha Fix for bug #331729 svn path=/trunk/; revision=33937 --- widgets/misc/ChangeLog | 7 +++++++ widgets/misc/e-selection-model.c | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'widgets/misc') diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 2529923031..5e7a5a06f7 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,10 @@ +2007-08-03 Milan Crha + + ** Fix for bug #331729 + + * e-selection-model.c: (move_selection): Don't call + e_sorter_model_to_sorted when there is no selected row. + 2007-07-27 Matthew Barnes * Makefile.am: 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 -- cgit