# HG changeset patch
# User Sean Egan <seanegan@gmail.com>
# Date 1112411384 0
# Node ID 62fde478eb139d5b6c45b95038288f2bfe03e635
# Parent  97a7d3f9f0c6a78fc8c96c1a22560e00fcf69902
[gaim-migrate @ 12375]
Last one. I promise.

committer: Tailor Script <tailor@pidgin.im>

diff -r 97a7d3f9f0c6 -r 62fde478eb13 src/gtkimhtml.c
--- a/src/gtkimhtml.c	Sat Apr 02 03:02:17 2005 +0000
+++ b/src/gtkimhtml.c	Sat Apr 02 03:09:44 2005 +0000
@@ -551,7 +551,8 @@
 						       &redraw_rect.x,
 						       &redraw_rect.y);
 		
-		if (GTK_IMHTML(widget)->editable || GTK_IMHTML(widget)->wbfo) {
+		if (GTK_IMHTML(widget)->edit.backcolor &&
+		    (GTK_IMHTML(widget)->editable || GTK_IMHTML(widget)->wbfo)) {
 			gdk_color_parse(GTK_IMHTML(widget)->edit.backcolor, &color);
 			gdk_gc_set_rgb_fg_color(gc, &color);
 			gdk_draw_rectangle(event->window,