summaryrefslogtreecommitdiff
path: root/src/gtkext/graph/layout.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-11-13 20:31:09 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-11-13 20:31:09 (GMT)
commit866993263387f96ebe2e482d63c9c4225e2c6085 (patch)
tree2c6c802bc04e6c2b9b43db8adbeb8352f86fef49 /src/gtkext/graph/layout.c
parentb36b57e81623194ba56d4862d2fba49d944a2793 (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.c5
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;