]> granicus.if.org Git - graphviz/commitdiff
Add "yes"/"no" support to -Gsplines=
authorellson <devnull@localhost>
Tue, 15 Sep 2009 19:16:38 +0000 (19:16 +0000)
committerellson <devnull@localhost>
Tue, 15 Sep 2009 19:16:38 +0000 (19:16 +0000)
lib/common/utils.c

index 175e9843dcf0868dd4fa1dbd910afaeac7d656ce..2c60b93dc9ef7e7e3ee7cfbfe5572556a22fe083 100644 (file)
@@ -1689,6 +1689,7 @@ int edgeType (char* s, int dflt)
     case 'n' :
     case 'N' :
        if (!strcasecmp (s+1, "one")) return et;
+       if (!strcasecmp (s+1, "o")) return ET_LINE;
        break;
     case 'o' :
     case 'O' :
@@ -1710,6 +1711,11 @@ int edgeType (char* s, int dflt)
        if (!strcasecmp (s+1, "rue"))
            et = ET_SPLINE;
        break;
+    case 'y' :
+    case 'Y' :
+       if (!strcasecmp (s+1, "es"))
+           et = ET_SPLINE;
+       break;
     }
     if (!et) {
        agerr(AGWARN, "Unknown \"splines\" value: \"%s\" - ignored\n", s);