Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/ChangeLog,v
retrieving revision 1.403
diff -u -r1.403 ChangeLog
--- ChangeLog	6 Mar 2006 10:47:01 -0000	1.403
+++ ChangeLog	28 Mar 2006 10:43:35 -0000
@@ -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
Index: e-selection-model-array.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/e-selection-model-array.c,v
retrieving revision 1.15
diff -u -r1.15 e-selection-model-array.c
--- e-selection-model-array.c	17 Jun 2005 15:20:33 -0000	1.15
+++ e-selection-model-array.c	28 Mar 2006 10:43:35 -0000
@@ -68,6 +68,7 @@
 
 		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;
 		}
