diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-11-13 20:31:09 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-11-13 20:31:09 (GMT) |
commit | 866993263387f96ebe2e482d63c9c4225e2c6085 (patch) | |
tree | 2c6c802bc04e6c2b9b43db8adbeb8352f86fef49 /src/gtkext/graph/layout.c | |
parent | b36b57e81623194ba56d4862d2fba49d944a2793 (diff) |
Improved the flow graph a little more.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@283 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/graph/layout.c')
-rw-r--r-- | src/gtkext/graph/layout.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gtkext/graph/layout.c b/src/gtkext/graph/layout.c index 69e32cc..64a8236 100644 --- a/src/gtkext/graph/layout.c +++ b/src/gtkext/graph/layout.c @@ -78,7 +78,7 @@ bool build_graph_view(GtkGraphView *view, GtkViewPanel **views, size_t count) /* Définition du graphique */ - cmds = strdup("digraph G {\noverlap=false;\n splines=ortho;\n compound=true;\n"); + cmds = strdup("digraph G {\n overlap=false;\n splines=ortho;\n compound=true;\n"); for (i = 0; i < count; i++) cmds = g_graph_node_register_for_dot(nodes[i], cmds); @@ -203,6 +203,9 @@ static char *complete_graph_links(const GtkGraphView *view, GtkViewPanel **views /* Sinon on suit le flux normal */ else { + if (g_arch_instruction_is_return(last)) + continue; + next = g_arch_instruction_get_next_iter(instrs, last, VMPA_MAX); if (next == NULL) continue; |