make config settings for splines same style as other graphviz options

This commit is contained in:
Lowly Worm 2017-06-22 22:55:12 -07:00
parent 692f0b2a64
commit 322a019f81
2 changed files with 5 additions and 5 deletions

View File

@ -1585,10 +1585,10 @@ repeat:
gv_grph = "bgcolor=white";
}
if (!gv_spline || !*gv_spline) {
gv_spline = "";
gv_spline = "splines=\"ortho\"";
}
r_cons_printf ("digraph code {\n"
"\tgraph [%s fontname=\"%s\" splines=\"%s\"];\n"
"\tgraph [%s fontname=\"%s\" %s];\n"
"\tnode [%s];\n"
"\tedge [%s];\n", gv_grph, font, gv_spline,
gv_node, gv_edge);
@ -2374,10 +2374,10 @@ R_API int r_core_anal_graph(RCore *core, ut64 addr, int opts) {
gv_node = "fillcolor=gray style=filled shape=box";
}
if (!gv_spline || !*gv_spline) {
gv_spline = "";
gv_spline = "splines=\"ortho\"";
}
r_cons_printf ("digraph code {\n"
"\tgraph [bgcolor=azure fontsize=8 fontname=\"%s\" splines=\"%s\"];\n"
"\tgraph [bgcolor=azure fontsize=8 fontname=\"%s\" %s];\n"
"\tnode [%s];\n"
"\tedge [%s];\n", font, gv_spline, gv_node, gv_edge);
}

View File

@ -2370,7 +2370,7 @@ R_API int r_core_config_init(RCore *core) {
SETPREF ("graph.title", "", "Title of the graph");
SETPREF ("graph.gv.node", "", "Graphviz node style. (color=gray, style=filled shape=box)");
SETPREF ("graph.gv.edge", "", "Graphviz edge style. (arrowhead=\"vee\")");
SETPREF ("graph.gv.spline", "ortho", "Graphviz spline style. (splines=\"spline\")");
SETPREF ("graph.gv.spline", "", "Graphviz spline style. (splines=\"ortho\")");
SETPREF ("graph.gv.graph", "", "Graphviz global style attributes. (bgcolor=white)");
SETPREF ("graph.gv.current", "false", "Highlight the current node in graphviz graph.");
SETPREF ("graph.nodejmps", "true", "Enables shortcuts for every node.");