summaryrefslogtreecommitdiff
path: root/src/graph/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/graph/node.c')
-rw-r--r--src/graph/node.c6
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");