From: Vsevolod Stakhov Date: Sat, 6 Aug 2016 13:32:33 +0000 (+0100) Subject: [Fix] Fix colors propagation from parent nodes X-Git-Tag: 1.3.2~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c41cab52b74caef33f09188754eaaefc2d38b8d9;p=rspamd.git [Fix] Fix colors propagation from parent nodes --- diff --git a/src/libserver/html.c b/src/libserver/html.c index b42eea04b..d904fa9a2 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -1629,6 +1629,7 @@ rspamd_html_process_block_tag (rspamd_mempool_t *pool, struct html_tag *tag, if (bl_parent->background_color.valid) { memcpy (&bl->background_color, &bl_parent->background_color, sizeof (bl->background_color)); + break; } } } @@ -1644,6 +1645,7 @@ rspamd_html_process_block_tag (rspamd_mempool_t *pool, struct html_tag *tag, if (bl_parent->font_color.valid) { memcpy (&bl->font_color, &bl_parent->font_color, sizeof (bl->font_color)); + break; } } }