]> granicus.if.org Git - graphviz/commitdiff
back out previous change
authorellson <devnull@localhost>
Fri, 6 Jun 2008 18:15:27 +0000 (18:15 +0000)
committerellson <devnull@localhost>
Fri, 6 Jun 2008 18:15:27 +0000 (18:15 +0000)
cmd/tools/colxlate.c

index fccac6619b31d4953b5c20f5a425bd30d5177f1c..d5ccdb23a6180a81338829996f67a4a048569024 100644 (file)
@@ -75,11 +75,9 @@ char *colorxlate(char *str, char *buf)
 {
     static hsbcolor_t *last;
     unsigned char canon[128];
-    char *p, *cp = NULL;
+    char *p;
     hsbcolor_t fake;
 
-    if ((cp = strstr(str, ":"))) /* consider only 1st element of colorlists */
-       *cp = '\0';
     if ((last == NULL) || (last->name[0] != str[0])
        || (strcmp(last->name, str))) {
        fake.name = (char *) canoncolor(str, canon);
@@ -99,8 +97,6 @@ char *colorxlate(char *str, char *buf)
     } else
        sprintf(buf, "%.3f %.3f %.3f", ((double) last->h) / 255,
                ((double) last->s) / 255, ((double) last->b) / 255);
-    if (cp)  /* restore colorlists */
-       cp = ":";
     return buf;
 }
 #else