]> granicus.if.org Git - graphviz/commitdiff
Fix gvedit to not use -Knop2 if the graph has pos attributes. This prevents
authorEmden R. Gansner <erg@alum.mit.edu>
Thu, 14 Nov 2013 16:36:36 +0000 (11:36 -0500)
committerEmden R. Gansner <erg@alum.mit.edu>
Thu, 14 Nov 2013 16:36:36 +0000 (11:36 -0500)
the input from specifying certain initial positions. If the user wants nop,
it needs to be specified explicitly.

cmd/gvedit/csettings.cpp

index fbac3cf6ac73887d0dabd2493154b6ccdeca4fd0..5d4314c914dd07a212715266980c9345427b0fc0 100644 (file)
@@ -303,10 +303,7 @@ bool CFrmSettings::createLayout()
     Agraph_t *G = this->graph;
     QString layout;
 
-    if(agfindnodeattr(G, (char*)"pos"))
-       layout="nop2";
-    else
-       layout=WIDGET(QComboBox, cbLayout)->currentText();
+    layout=WIDGET(QComboBox, cbLayout)->currentText();
 
 
     gvLayout(gvc, G, (char *)layout.toUtf8().constData());     /* library function */