X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_graph.c;h=a93fbb1c52708ca3d047630eb587434c6ac29a00;hb=7d5dc08e976de9fa166f35f8e343011019b7f0ec;hp=24b58d08bf48b9b8264789aa340aeb382a1c8bc9;hpb=f99f5a6e7ff6ba37adb08eb0c3c5af9371d3bc56;p=rrdtool.git diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 24b58d0..a93fbb1 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -1730,6 +1730,7 @@ int leg_place( prt_fctn != 'r' && prt_fctn != 'j' && prt_fctn != 'c' && + prt_fctn != 'u' && prt_fctn != 's' && prt_fctn != '\0' && prt_fctn != 'g') { free(legspace); rrd_set_error @@ -1839,6 +1840,8 @@ int leg_place( leg_y += im->text_prop[TEXT_PROP_LEGEND].size * 1.8; if (prt_fctn == 's') leg_y -= im->text_prop[TEXT_PROP_LEGEND].size; + if (prt_fctn == 'u') + leg_y -= im->text_prop[TEXT_PROP_LEGEND].size *1.8; if(calc_width && (fill > legendwidth)){ legendwidth = fill;