summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fc04186)
raw | patch | inline | side by side (parent: fc04186)
author | alex <alex@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 23 Mar 2002 20:41:48 +0000 (20:41 +0000) | ||
committer | alex <alex@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 23 Mar 2002 20:41:48 +0000 (20:41 +0000) |
src/rrd_graph.c | patch | blob | history |
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index 7908ad4564e18f3138abb7d596915732c0e21aab..8b9e679fb5bd6153834e777e5871142ca00a2e8e 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
** just below the title (if any) and with sufficient
** padding.
*/
- im->pie_x = im->xgif - Xspacing - Xpie/2;
- im->pie_y = im->yorigin-Ymain+Ypie/2;
+ if (elements) {
+ im->pie_x = im->xgif - Xspacing - Xpie/2;
+ im->pie_y = im->yorigin-Ymain+Ypie/2;
+ } else {
+ im->pie_x = im->xgif/2;
+ im->pie_y = im->yorigin-Ypie/2;
+ }
return 0;
}