changeset 27866:f27425877d29

imhtml: When inserting html, only set a font if it's a change from the default. Fixes #7648.
author Paul Aurich <paul@darkrain42.org>
date Mon, 10 Aug 2009 03:27:52 +0000
parents 30c3e66fd42f
children 2075b5cb608e
files pidgin/gtkimhtml.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkimhtml.c	Mon Aug 10 02:06:56 2009 +0000
+++ b/pidgin/gtkimhtml.c	Mon Aug 10 03:27:52 2009 +0000
@@ -2953,7 +2953,7 @@
 							font->size = oldfont->size;
 						else
 							font->size = 3;
-						if ((imhtml->format_functions & (GTK_IMHTML_GROW|GTK_IMHTML_SHRINK)))
+						if ((imhtml->format_functions & (GTK_IMHTML_GROW|GTK_IMHTML_SHRINK)) && (font->size != 3 || (oldfont && oldfont->size == 3)))
 							gtk_imhtml_font_set_size(imhtml, font->size);
 						g_free(size);
 						fonts = g_slist_prepend (fonts, font);