# HG changeset patch # User Tim Ringenbach # Date 1087269013 0 # Node ID 46cfbd17ce3e4d90f4e18d2ca051cfc5a4de6653 # Parent 7a8aa87164ae05e05a4c6f95b9493875a196c1ac [gaim-migrate @ 10089] rizzo says this fixes a crash him and warren didn't like. Something about pasting from firefox. committer: Tailor Script diff -r 7a8aa87164ae -r 46cfbd17ce3e src/gtkimhtml.c --- 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); }