changeset 9286:46cfbd17ce3e

[gaim-migrate @ 10089] rizzo says this fixes a crash him and warren didn't like. Something about pasting from firefox. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Tue, 15 Jun 2004 03:10:13 +0000
parents 7a8aa87164ae
children 2fa81d44ee6f
files src/gtkimhtml.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Tue Jun 15 02:37:27 2004 +0000
+++ b/src/gtkimhtml.c	Tue Jun 15 03:10:13 2004 +0000
@@ -2348,13 +2348,13 @@
 							if (font->underline != oldfont->underline)
 							    gtk_imhtml_toggle_underline(imhtml);
 
-							if (!oldfont->face || strcmp(font->face, oldfont->face) != 0)
+							if (font->face && (!oldfont->face || strcmp(font->face, oldfont->face) != 0))
 							    gtk_imhtml_toggle_fontface(imhtml, oldfont->face);
 
-							if (!oldfont->fore || strcmp(font->fore, oldfont->fore) != 0)
+							if (font->fore && (!oldfont->fore || strcmp(font->fore, oldfont->fore) != 0))
 							    gtk_imhtml_toggle_forecolor(imhtml, oldfont->fore);
 
-							if (!oldfont->back || strcmp(font->back, oldfont->back) != 0)
+							if (font->back && (!oldfont->back || strcmp(font->back, oldfont->back) != 0))
 						      gtk_imhtml_toggle_backcolor(imhtml, oldfont->back);
 						}