diff pidgin/gtkimhtml.c @ 23383:6b4b68323b3b

The text iterators need to be properly ordered here. Taking the iterators from the x/y coordinates doesn't ensure the correct order, especially when RTL languages are involved. Thanks to thefox in #pidgin for reporting the bug.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 21 Jun 2008 11:07:17 +0000
parents 8c315f969600
children 5c70d953a497
line wrap: on
line diff
--- a/pidgin/gtkimhtml.c	Sat Jun 21 06:56:35 2008 +0000
+++ b/pidgin/gtkimhtml.c	Sat Jun 21 11:07:17 2008 +0000
@@ -768,7 +768,7 @@
 	gtk_text_view_get_iter_at_location(GTK_TEXT_VIEW(widget), &end,
 	                                   buf_x + event->area.width, buf_y + event->area.height);
 
-
+	gtk_text_iter_order(&start, &end);
 
 	cur = start;