[evolution-patches] A patch for gal



Hi! GAL developers,
Here is a small patch for gal HEAD. Please review it and check it in if the patch is OK. Without this patch, when you drag to change the size of the mail headers to a small one, evolution will hang.
   Thanks!
      Harry
Index: gal/e-table/e-cell-text.c
===================================================================
RCS file: /cvs/gnome/gal/gal/e-table/e-cell-text.c,v
retrieving revision 1.123
diff -u -r1.123 e-cell-text.c
--- gal/e-table/e-cell-text.c	18 Apr 2003 19:51:01 -0000	1.123
+++ gal/e-table/e-cell-text.c	22 Apr 2003 08:22:11 -0000
@@ -486,7 +486,7 @@
 		pango_layout_set_width (layout, width * PANGO_SCALE);
 	pango_layout_set_wrap (layout, PANGO_WRAP_CHAR);
 
-	while (pango_layout_get_line_count (layout) > 1) {
+	if (pango_layout_get_line_count (layout) > 1) {
 		PangoLayoutLine *line = pango_layout_get_line (layout, 0);
 		gchar *line_text = g_strdup (pango_layout_get_text (layout));
 		gchar *last_char = g_utf8_prev_char (line_text + line->length - 1);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]