Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gal/ChangeLog,v
retrieving revision 1.922
diff -u -p -r1.922 ChangeLog
--- ChangeLog	4 Apr 2005 05:20:22 -0000	1.922
+++ ChangeLog	6 Apr 2005 09:17:19 -0000
@@ -1,3 +1,10 @@
+2005-04-06  Yu Mengjie  <meng-jie.yu@sun.com>
+
+	* gal/widgets/e-selection-model.c: (e_selection_model_key_press):
+	break while row equals -1.
+
+	Fixes #74434
+
 2005-04-04  Pawan Chitrakar  <pawan@nplinux.org>
 
 	* configure.in: Added ne to ALL_LINGUAS
Index: gal/widgets/e-selection-model.c
===================================================================
RCS file: /cvs/gnome/gal/gal/widgets/e-selection-model.c,v
retrieving revision 1.19
diff -u -p -r1.19 e-selection-model.c
--- gal/widgets/e-selection-model.c	15 Nov 2002 02:18:33 -0000	1.19
+++ gal/widgets/e-selection-model.c	6 Apr 2005 09:17:23 -0000
@@ -607,6 +607,9 @@ e_selection_model_key_press      (ESelec
 		if (selection->mode != GTK_SELECTION_SINGLE) {
 			int row = e_selection_model_cursor_row(selection);
 			int col = e_selection_model_cursor_col(selection);
+			if (row == -1)
+				break;
+
 			e_selection_model_toggle_single_row (selection, row);
 			g_signal_emit(selection,
 				      e_selection_model_signals[CURSOR_ACTIVATED], 0,
