aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filter/ChangeLog6
-rw-r--r--filter/filter-colour.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index 9d3eb2cf08..ece5ee7998 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,9 @@
+2003-05-05 Jeffrey Stedfast <fejj@ximian.com>
+
+ * filter-colour.c (format_sexp): Format the colour string in a way
+ that gdk_color_parse() will handle. Apparently it no longer
+ handles rgb:<red>/<green>/<blue>? Fixes bug #42345.
+
2003-04-24 Jeffrey Stedfast <fejj@ximian.com>
Fix for bug #41578.
diff --git a/filter/filter-colour.c b/filter/filter-colour.c
index 63d1d07e03..4819b24524 100644
--- a/filter/filter-colour.c
+++ b/filter/filter-colour.c
@@ -223,7 +223,7 @@ format_sexp (FilterElement *fe, GString *out)
FilterColour *fc = (FilterColour *)fe;
char *str;
- str = g_strdup_printf ("rgb:%04x/%04x/%04x", fc->r, fc->g, fc->b);
+ str = g_strdup_printf ("#%02x%02x%02x", (fc->r >> 8) & 0xff, (fc->g >> 8) & 0xff, (fc->b >> 8) & 0xff);
e_sexp_encode_string (out, str);
g_free (str);
}