diff pidgin/gtkimhtml.c @ 23045:76ae43c5e745

*** Plucked rev 69b22e32f7ada182101e0746f02891389ceb0c52 (sadrul@pidgin.im): 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. *** Plucked rev 777e7e6c4fb02c0b0f0dc557554cfc83b92544ae (sadrul@pidgin.im): Small leak fix.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 21 Jun 2008 14:41:18 +0000
parents 25233b528b66
children 7b7744995791 5c70d953a497
line wrap: on
line diff
--- a/pidgin/gtkimhtml.c	Thu Jun 19 18:13:32 2008 +0000
+++ b/pidgin/gtkimhtml.c	Sat Jun 21 14:41:18 2008 +0000
@@ -715,7 +715,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;