From 05a50698056b0e3610b980d9392c44a24329b06f Mon Sep 17 00:00:00 2001
From: Li Yuan
Date: Mon, 10 Apr 2006 09:19:22 +0000
Subject: **Fixes bug #335618 If the row being deleted is the last one, we
should
2006-03-28 Li Yuan
**Fixes bug #335618
* e-selection-model-array.c: (e_selection_model_array_delete_rows):
If the row being deleted is the last one, we should change the
selection_start_row.
svn path=/trunk/; revision=31797
---
widgets/misc/ChangeLog | 7 +++++++
widgets/misc/e-selection-model-array.c | 1 +
2 files changed, 8 insertions(+)
(limited to 'widgets/misc')
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index bfc9fb24fe..0199f9cad3 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,10 @@
+2006-03-28 Li Yuan
+
+ **Fixes bug #335618
+ * e-selection-model-array.c: (e_selection_model_array_delete_rows):
+ If the row being deleted is the last one, we should change the
+ selection_start_row.
+
2006-03-06 Simon Zheng
Fixes bug #332140
diff --git a/widgets/misc/e-selection-model-array.c b/widgets/misc/e-selection-model-array.c
index 07e60a8065..834f473722 100644
--- a/widgets/misc/e-selection-model-array.c
+++ b/widgets/misc/e-selection-model-array.c
@@ -68,6 +68,7 @@ e_selection_model_array_delete_rows(ESelectionModelArray *esma, int row, int cou
if (esma->cursor_row >= e_bit_array_bit_count (esma->eba)) {
esma->cursor_row = e_bit_array_bit_count (esma->eba) - 1;
+ esma->selection_start_row--;
} else if (esma->cursor_row < 0) {
esma->cursor_row = -1;
}
--
cgit v1.2.3