changeset 674:b68c592829a6

[gaim-migrate @ 684] no more width segfaults. gdk should check this. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 14 Aug 2000 16:50:33 +0000
parents ddc3fd0dcd51
children b77c039c9d3d
files src/gtkhtml.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkhtml.c	Sun Aug 13 03:15:06 2000 +0000
+++ b/src/gtkhtml.c	Mon Aug 14 16:50:33 2000 +0000
@@ -2045,7 +2045,7 @@
 			/*end my stuff*/
 
 
-			if (hb->back != NULL && selected_state != GTK_STATE_SELECTED) {
+			if (hb->text && hb->back != NULL && selected_state != GTK_STATE_SELECTED) {
 				int wid = gdk_string_width(hb->font, hb->text),
 				    hei = gdk_text_height(hb->font, "C", 1);
 				gdk_gc_set_foreground(gc, hb->back);