diff src/gtkimhtml.c @ 6042:460b4ba2d452

[gaim-migrate @ 6492] This fixes http://sourceforge.net/tracker/index.php?func=detail&aid=761532&group_id=235&atid=100235 It basically puts the cap on the max font size at 100. I thought this was done a while ago, but maybe not? committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 06 Jul 2003 08:11:00 +0000
parents 156953fe3e14
children 19cb60247a6c
line wrap: on
line diff
--- a/src/gtkimhtml.c	Sun Jul 06 07:53:26 2003 +0000
+++ b/src/gtkimhtml.c	Sun Jul 06 08:11:00 2003 +0000
@@ -1228,6 +1228,8 @@
 							} else if (isdigit (*size)) {
 								sscanf (size, "%hd", &font->size);
 							}
+							if (font->size > 100)
+								font->size = 100;
 						} else if (oldfont)
 							font->size = oldfont->size;
 						g_free(size);