aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi Yuan <li.yuan@sun.com>2006-04-10 17:19:22 +0800
committerLi Yuan <liyuan@src.gnome.org>2006-04-10 17:19:22 +0800
commit05a50698056b0e3610b980d9392c44a24329b06f (patch)
tree8d108da3127a88b7f482f80c5198d99c9eb45e59
parent18da28dd9a54f883108d1d9ea72d3df605040ca4 (diff)
downloadgsoc2013-evolution-05a50698056b0e3610b980d9392c44a24329b06f.tar.gz
gsoc2013-evolution-05a50698056b0e3610b980d9392c44a24329b06f.tar.zst
gsoc2013-evolution-05a50698056b0e3610b980d9392c44a24329b06f.zip
**Fixes bug #335618 If the row being deleted is the last one, we should
2006-03-28 Li Yuan <li.yuan@sun.com> **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
-rw-r--r--widgets/misc/ChangeLog7
-rw-r--r--widgets/misc/e-selection-model-array.c1
2 files changed, 8 insertions, 0 deletions
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 <li.yuan@sun.com>
+
+ **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 <simon.zheng@sun.com>
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;
}