diff options
author | Milan Crha <mcrha@src.gnome.org> | 2007-08-03 16:27:29 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2007-08-03 16:27:29 +0800 |
commit | 8cb6c2ae924452dd6618c9db66b96b8dd06d43ec (patch) | |
tree | 922cb0634f176055a69f34a9132fd2252da3a83a /widgets/misc | |
parent | ad1bc58bcd6a983d38e332add29483ce4dde1d38 (diff) | |
download | gsoc2013-evolution-8cb6c2ae924452dd6618c9db66b96b8dd06d43ec.tar.gz 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')
-rw-r--r-- | widgets/misc/ChangeLog | 7 | ||||
-rw-r--r-- | widgets/misc/e-selection-model.c | 5 |
2 files changed, 11 insertions, 1 deletions
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 <mcrha@redhat.com> + + ** 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 <mbarnes@redhat.com> * 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 |