[evolution-patches] [gtkhtml] #68092 Crash evolution after uper-casing a word with accents.




Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/ChangeLog,v
retrieving revision 1.2046
diff -u -p -r1.2046 ChangeLog
--- ChangeLog	8 Oct 2004 13:21:38 -0000	1.2046
+++ ChangeLog	13 Oct 2004 12:42:05 -0000
@@ -1,3 +1,10 @@
+2004-10-13  Radek Doulik  <rodo ximian com>
+
+	* htmlengine-edit-text.c (upper_lower): set text_len and
+	text_bytes to right values
+
+	Fixes #68092
+
 2004-10-08  Radek Doulik  <rodo ximian com>
 
 	* htmltext.c (html_text_remove_unwanted_line_breaks): added "$+?"
Index: htmlengine-edit-text.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/htmlengine-edit-text.c,v
retrieving revision 1.15
diff -u -p -r1.15 htmlengine-edit-text.c
--- htmlengine-edit-text.c	22 Jul 2004 13:04:30 -0000	1.15
+++ htmlengine-edit-text.c	13 Oct 2004 12:42:05 -0000
@@ -59,7 +59,8 @@ upper_lower (HTMLObject *obj, HTMLEngine
 		old_text = HTML_TEXT (obj)->text;
 		HTML_TEXT (obj)->text = up ? g_utf8_strup (old_text, -1) : g_utf8_strdown (old_text, -1);
 		g_free (old_text);
-		HTML_TEXT (obj)->text_bytes = g_utf8_strlen (HTML_TEXT (obj)->text, -1);
+		HTML_TEXT (obj)->text_len = g_utf8_strlen (HTML_TEXT (obj)->text, -1);
+		HTML_TEXT (obj)->text_bytes = strlen (HTML_TEXT (obj)->text);
 	}
 }
 


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