From: ellson <devnull@localhost>
Date: Fri, 6 Jun 2008 18:15:54 +0000 (+0000)
Subject: deal with colorlists in fillcolor code too
X-Git-Tag: LAST_LIBGRAPH~32^2~3966
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3ee2e0f185bbf678366b1bdd8483c2883d0925b;p=graphviz

deal with colorlists in fillcolor code too
---

diff --git a/lib/gvc/gvrender.c b/lib/gvc/gvrender.c
index c9a123bae..cdb5e5f25 100644
--- a/lib/gvc/gvrender.c
+++ b/lib/gvc/gvrender.c
@@ -694,7 +694,10 @@ void gvrender_set_fillcolor(GVJ_t * job, char *name)
 {
     gvrender_engine_t *gvre = job->render.engine;
     gvcolor_t *color = &(job->obj->fillcolor);
+    char *cp = NULL;
 
+    if ((cp = strstr(name, ":"))) /* if its a color list, then use only first */
+	*cp = '\0';
     if (gvre) {
 	gvrender_resolve_color(job->render.features, name, color);
 	if (gvre->resolve_color)
@@ -708,6 +711,8 @@ void gvrender_set_fillcolor(GVJ_t * job, char *name)
 	    cg->set_fillcolor(name);
     }
 #endif
+    if (cp)
+	*cp = ':';
 }
 
 void gvrender_set_style(GVJ_t * job, char **s)