diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-06-28 22:46:26 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-06-28 22:46:26 (GMT) |
commit | 1cb0bfdc11dc46a2bc2fd6dfb0aa32d0f4bf0fe1 (patch) | |
tree | 6579e29b3b843a7488e114f8cbf710d86c77b47b /src/graph/node.c | |
parent | 33c1281b6a4e46e94daa3d165e32024f7d85d856 (diff) |
Improved Graphviz coordinates.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@83 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/graph/node.c')
-rw-r--r-- | src/graph/node.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graph/node.c b/src/graph/node.c index 8432476..e6427d8 100644 --- a/src/graph/node.c +++ b/src/graph/node.c @@ -177,7 +177,7 @@ GGraphNode *g_graph_node_new(GtkBinView *view) } -#include <math.h> + /****************************************************************************** * * * Paramètres : node = intermédiaire à consulter. * @@ -208,10 +208,10 @@ char *g_graph_node_register_for_dot(const GGraphNode *node, char *cmds) requisition.width / G_GRAPH_NODE_GET_CLASS(node)->dpi_x, requisition.height / G_GRAPH_NODE_GET_CLASS(node)->dpi_y); - snprintf(buffer, 128, ", width=\"%g\"", round(requisition.width / G_GRAPH_NODE_GET_CLASS(node)->dpi_x) + 1.0); + snprintf(buffer, 128, ", width=\"%g\"", requisition.width / G_GRAPH_NODE_GET_CLASS(node)->dpi_x); cmds = stradd(cmds, buffer); - snprintf(buffer, 128, ", height=\"%g\"", round(requisition.height / G_GRAPH_NODE_GET_CLASS(node)->dpi_y) + 1.0); + snprintf(buffer, 128, ", height=\"%g\"", requisition.height / G_GRAPH_NODE_GET_CLASS(node)->dpi_y); cmds = stradd(cmds, buffer); cmds = stradd(cmds, "];\n"); |