# HG changeset patch # User Sadrul Habib Chowdhury # Date 1214046437 0 # Node ID 6b4b68323b3b8d7c6c1e2e1e2f98874cd4753a11 # Parent 8ea901db8e3441c2bd2eafabf65c660c96d7aab7 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. diff -r 8ea901db8e34 -r 6b4b68323b3b pidgin/gtkimhtml.c --- 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;