Code

fix right aligned text
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 25 Jan 2010 22:09:23 +0000 (22:09 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 25 Jan 2010 22:09:23 +0000 (22:09 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@2011 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_graph.c
program/src/rrd_tool.c

index 258eb528dc3ea0e1af1d045a54ef17f7d557998a..24b58d08bf48b9b8264789aa340aeb382a1c8bc9 100644 (file)
@@ -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 */
index 9e60847dadfbe1c529483b479ff5d6c70870fe0c..5a56a96d41281a6aa95d09bb71e62615194cb932 100644 (file)
@@ -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"