[addressbook] patch for bug #331998

Irene Huang <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <[email protected]>
hi, 
	Please review the attach patch for bug #331998 - Pressing "Clear"
button continuously causes Evolution to crash.
(http://bugzilla.gnome.org/show_bug.cgi?id=331998)

Thanks 
--Irene

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
evolution-331998-clear-crash-2-21.diff (text/x-patch, 1.2 KB)
Index: widgets/misc/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/ChangeLog,v
retrieving revision 1.399
diff -u -r1.399 ChangeLog
--- widgets/misc/ChangeLog	13 Feb 2006 16:45:27 -0000	1.399
+++ widgets/misc/ChangeLog	21 Feb 2006 09:25:29 -0000
@@ -1,3 +1,10 @@
+2006-02-21  Irene Huang  <[email protected]>
+
+	Fixes bug #331998
+
+	* e-reflow.c: (do_adjustment): Check and see if reflow->items
+	and reflow->items[row] are NULL or not.
+
 2006-02-13  Andre Klapper  <[email protected]>
 
 	* e-charset-picker.c: adding thai support.
Index: widgets/misc/e-reflow.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/e-reflow.c,v
retrieving revision 1.63
diff -u -r1.63 e-reflow.c
--- widgets/misc/e-reflow.c	30 Jan 2006 12:28:04 -0000	1.63
+++ widgets/misc/e-reflow.c	21 Feb 2006 09:25:29 -0000
@@ -177,6 +177,8 @@
 	adj = gtk_layout_get_hadjustment (GTK_LAYOUT (GNOME_CANVAS_ITEM (reflow)->canvas));
 	value = adj->value;
 
+	if ((!reflow->items) || (!reflow->items[row]))
+		return TRUE;
 	min_value = reflow->items[row]->x2 - adj->page_size;
 	max_value = reflow->items[row]->x1;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.