src/gtkimhtml.c

changeset 1582
6d07e6d5de09
parent 1574
155ae4e33c31
child 1613
8216312b8c7e
--- a/src/gtkimhtml.c	Thu Mar 15 16:50:45 2001 +0000
+++ b/src/gtkimhtml.c	Thu Mar 15 17:47:14 2001 +0000
@@ -2051,23 +2051,23 @@
 		rev = g_list_last (newbits); \
 		while (rev) { \
 			GtkIMHtmlBit *bit = rev->data; \
-			if (bit->type == TYPE_BR) \
-				break; \
 			if (bit->bg) \
 				gdk_color_free (bit->bg); \
 			bit->bg = gdk_color_copy (bg); \
+			if (bit->type == TYPE_BR) \
+				break; \
 			rev = g_list_previous (rev); \
 		} \
 		if (!rev) { \
 			rev = g_list_last (imhtml->bits); \
 			while (rev) { \
 				GtkIMHtmlBit *bit = rev->data; \
-				if (bit->type == TYPE_BR) \
-					break; \
 				if (bit->bg) \
 					gdk_color_free (bit->bg); \
 				bit->bg = gdk_color_copy (bg); \
 				gdk_color_alloc (cmap, bit->bg); \
+				if (bit->type == TYPE_BR) \
+					break; \
 				rev = g_list_previous (rev); \
 			} \
 		} \

mercurial