From: oetiker Date: Mon, 25 Jan 2010 22:09:23 +0000 (+0000) Subject: fix right aligned text X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=699b0c5e994cf4e400948fefbc338f5e0945b642;p=rrdtool-all.git fix right aligned text git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@2011 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index 258eb528..24b58d08 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -1818,7 +1818,7 @@ int leg_place( if (prt_fctn == 'c') leg_x = (double)(legendwidth - fill) / 2.0; if (prt_fctn == 'r') - leg_x = legendwidth - fill - border; + leg_x = legendwidth - fill + border; for (ii = mark; ii <= i; ii++) { if (im->gdes[ii].legend[0] == '\0') continue; /* skip empty legends */ diff --git a/program/src/rrd_tool.c b/program/src/rrd_tool.c index 9e60847d..5a56a96d 100644 --- a/program/src/rrd_tool.c +++ b/program/src/rrd_tool.c @@ -171,6 +171,7 @@ void PrintUsage( "\t\t[PRINT:vdefname:format]\n" "\t\t[GPRINT:vdefname:format]\n" "\t\t[COMMENT:text]\n" "\t\t[SHIFT:vname:offset]\n" + "\t\t[TEXTALIGN:{left|right|justified|center}]\n" "\t\t[TICK:vname#rrggbb[aa][:[fraction][:legend]]]\n" "\t\t[HRULE:value#rrggbb[aa][:legend]]\n" "\t\t[VRULE:value#rrggbb[aa][:legend]]\n"