X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Frrd_gfx.c;h=cb42b8f2465d1831c47a3c77653feee5af2b4d80;hb=cbfdb5c8fbc87cb31cf12232d589549e9085bcab;hp=74dce6b7e5ec1b1c100442acb02d8fbb2aa60bcd;hpb=41b639b52f7ffe4b0b268ce12d6cb2cd2dbe5a02;p=rrdtool.git diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c index 74dce6b..cb42b8f 100644 --- a/src/rrd_gfx.c +++ b/src/rrd_gfx.c @@ -136,7 +136,7 @@ static PangoLayout *gfx_prep_text( long tab_shift = fmod(x, tabwidth); int border = im->text_prop[TEXT_PROP_LEGEND].size * 2.0; - gchar *utf8_text; + gchar *utf8_text; PangoTabArray *tab_array; PangoContext *pango_context; @@ -163,7 +163,7 @@ static PangoLayout *gfx_prep_text( pango_layout_set_font_description(layout, font_desc); /* pango expects the string to be utf-8 encoded */ - utf8_text = g_locale_to_utf8((const gchar *)text, -1, NULL, NULL, NULL); + utf8_text = g_locale_to_utf8((const gchar *) text, -1, NULL, NULL, NULL); /* In case of an error, i.e. utf8_text == NULL (locale settings messed * up?), we fall back to a possible "invalid UTF-8 string" warning instead