From cb60570832925b29c8cc9f7bdd8f4774ed077cd3 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Tue, 8 Apr 2008 18:42:56 +0000 Subject: [PATCH] another currentColor fix from bug 174720 --- src/style.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/style.cpp b/src/style.cpp index 46ff51e18..97781737e 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -3646,7 +3646,7 @@ sp_style_write_ipaint(gchar *b, gint const len, gchar const *const key, css << "currentColor"; } - if ( paint->colorSet ) { + if ( paint->colorSet && !paint->currentcolor ) { if ( !css.str().empty() ) { css << " "; } @@ -3655,7 +3655,7 @@ sp_style_write_ipaint(gchar *b, gint const len, gchar const *const key, css << color_buf; } - if (paint->value.color.icc) { + if (paint->value.color.icc && !paint->currentcolor) { if ( !css.str().empty() ) { css << " "; } -- 2.30.2