]> granicus.if.org Git - graphviz/commitdiff
Handle string conversion cases for SFDP.
authorerg <devnull@localhost>
Thu, 26 Feb 2009 20:46:13 +0000 (20:46 +0000)
committererg <devnull@localhost>
Thu, 26 Feb 2009 20:46:13 +0000 (20:46 +0000)
cmd/smyrna/topview.c

index 9d749907fa12896318bcd99913061aa4a9e09c56..0fc655f1cf75308329a7c5462f52df6dff3161ac 100755 (executable)
@@ -1634,6 +1634,8 @@ s2layout (char* s)
        return GVK_CIRCO;
     else if (strcaseeq(s, "fdp"))
        return GVK_FDP;
+    else if (strcaseeq(s, "sfdp"))
+       return GVK_SFDP;
     else
        return GVK_NONE;
 
@@ -1662,6 +1664,9 @@ layout2s (gvk_layout gvkl)
     case GVK_FDP :
        s = "fdp";
        break;
+    case GVK_SFDP :
+       s = "sfdp";
+       break;
     default :
        s = "";
        break;