From bd8150745250b55fa17a49cfa36bc4da619a3d3b Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 8 Jun 2008 17:08:11 +0000 Subject: [PATCH] fixed pango markup switch ... we still want the text to show even if no markup is enabled git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1412 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_gfx.c | 2 ++ program/src/rrd_graph.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/program/src/rrd_gfx.c b/program/src/rrd_gfx.c index 95d04bc4..b83f78e8 100644 --- a/program/src/rrd_gfx.c +++ b/program/src/rrd_gfx.c @@ -158,6 +158,8 @@ static PangoLayout *gfx_prep_text( pango_layout_set_font_description(layout, font_desc); if (im->with_markup) pango_layout_set_markup(layout, text, -1); + else + pango_layout_set_text(layout, text, -1); return layout; } diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index f67f277d..357df076 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -3861,7 +3861,7 @@ void rrd_graph_options( int col_start, col_end; opt = getopt_long(argc, argv, - "s:e:x:y:v:w:h:D:iu:l:rb:oc:n:m:t:f:a:I:zgjFYAMEX:L:S:T:NR:B:W:k", + "s:e:x:y:v:w:h:D:iu:l:rb:oc:n:m:t:f:a:I:zgjFYAMEX:L:S:T:NR:B:W:kP", long_options, &option_index); if (opt == EOF) break; -- 2.30.2