2004-11-11 [colin] 0.9.12cvs144.2
[claws.git] / src / textview.c
index aaa9c7eb0b4d8345e3c06c2b275f1fd7351f930e..8e412670775a3c7311f88e38cccbff4378a0042a 100644 (file)
@@ -2000,18 +2000,18 @@ static gboolean textview_get_uri_range(TextView *textview,
 {
        GtkTextIter _start_iter, _end_iter;
 
-       _start_iter = *iter;
-       if(!gtk_text_iter_backward_to_tag_toggle(&_start_iter, tag)) {
-               debug_print("Can't find start.");
-               return FALSE;
-       }
-
        _end_iter = *iter;
        if(!gtk_text_iter_forward_to_tag_toggle(&_end_iter, tag)) {
                debug_print("Can't find end");
                return FALSE;
        }
 
+       _start_iter = _end_iter;
+       if(!gtk_text_iter_backward_to_tag_toggle(&_start_iter, tag)) {
+               debug_print("Can't find start.");
+               return FALSE;
+       }
+
        *start_iter = _start_iter;
        *end_iter = _end_iter;