From f99f5a6e7ff6ba37adb08eb0c3c5af9371d3bc56 Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 25 Jan 2010 22:09:23 +0000 Subject: [PATCH] fix right aligned text git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2011 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_graph.c | 2 +- src/rrd_tool.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 258eb52..24b58d0 100644 --- a/src/rrd_graph.c +++ b/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/src/rrd_tool.c b/src/rrd_tool.c index 9e60847..5a56a96 100644 --- a/src/rrd_tool.c +++ b/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" -- 2.30.2