From 93b5bc52971522f3793ad896c0d8fd888f490de3 Mon Sep 17 00:00:00 2001 From: oetiker Date: Fri, 22 Jul 2005 13:16:18 +0000 Subject: [PATCH] init ytr after all the changes have happened git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@659 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_graph.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rrd_graph.c b/src/rrd_graph.c index a06417e..0325cde 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -2242,13 +2242,12 @@ graph_size_location(image_desc_t *im, int elements /* reserve space for main and/or pie */ im->yimg = Ymain + Yxlabel; - + #ifdef WITH_PIECHART if (im->yimg < Ypie) im->yimg = Ypie; #endif im->yorigin = im->yimg - Yxlabel; - ytr(im,DNAN); /* reserve space for the title *or* some padding above the graph */ if (Ytitle) { @@ -2260,7 +2259,7 @@ graph_size_location(image_desc_t *im, int elements } /* reserve space for padding below the graph */ im->yimg += Yspacing; - + /* Determine where to place the legends onto the image. ** Adjust im->yimg to match the space requirements. */ @@ -2289,6 +2288,7 @@ graph_size_location(image_desc_t *im, int elements } #endif + ytr(im,DNAN); return 0; } -- 2.11.0