changeset 894:b5b3aa06111d

[gaim-migrate @ 904] BLARGH! :) committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 13 Sep 2000 18:49:33 +0000
parents 93385c6fc772
children 81a8fb0a565f
files src/gtkhtml.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkhtml.c	Wed Sep 13 16:41:22 2000 +0000
+++ b/src/gtkhtml.c	Wed Sep 13 18:49:33 2000 +0000
@@ -1676,6 +1676,8 @@
 
 		if (html->selected_text)
 		{
+			gboolean forcedraw = FALSE;
+			hbits = html->html_bits;
 			g_free(html->selected_text);
 			html->selected_text = NULL;
 			html->start_sel = NULL;
@@ -1685,9 +1687,11 @@
 			while (hbits)
 			{
 				hb = (GtkHtmlBit *) hbits->data;
-				if (hb->was_selected)
+				if (hb->was_selected || forcedraw) {
 					gtk_html_draw_bit(html, hb, 1);
-				hbits = hbits->prev;
+					forcedraw = TRUE;
+				}
+				hbits = hbits->next;
 			}
 			hbits = g_list_last(html->html_bits);
 		}