changeset 677:05f6f7dabb7e

[gaim-migrate @ 687] BODY BGCOLOR works again. i'm so stupid sometimes. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 15 Aug 2000 00:04:14 +0000
parents 9c49d2456773
children c72f58814e9f
files src/gtkhtml.c
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkhtml.c	Mon Aug 14 19:44:43 2000 +0000
+++ b/src/gtkhtml.c	Tue Aug 15 00:04:14 2000 +0000
@@ -3345,11 +3345,8 @@
 							if (sscanf(d, "%x", &colorv)
 								&& !(options & HTML_OPTION_NO_COLOURS))
 							{
-								if (colorv != 0xffffff ||
-																		    !(display_options & OPT_DISP_IGN_WHITE)) {
-									current->color = get_color(colorv, map);
-									current->owncolor = 1;
-								}
+								current->color = get_color(colorv, map);
+								current->owncolor = 1;
 							}
 							else
 							{
@@ -3415,7 +3412,7 @@
 					{
 						if (!strncasecmp(d, "BGCOLOR=", strlen("BGCOLOR=")))
 						{
-							d += strlen("COLOR=");
+							d += strlen("BGCOLOR=");
 							if (*d == '\"')
 								d++;
 							if (*d == '#')
@@ -3425,7 +3422,7 @@
 							if (sscanf(d, "%x", &colorv)
 								&& !(options & HTML_OPTION_NO_COLOURS))
 							{
-								if (colorv == 0xffffff &&
+								if (colorv != 0xffffff ||
 								    !(display_options & OPT_DISP_IGN_WHITE)) {
 									current->bgcol = get_color(colorv, map);
 									current->ownbg = 1;