aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/misc/ChangeLog7
-rw-r--r--widgets/misc/e-selection-model.c5
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