From eb1c56c734284b8d72da7214299acd9204b3ef79 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 9 Nov 2005 08:48:24 +0000 Subject: Set layout wrapping to PANGO_WRAP_WORD_CHAR if width is set for the 2005-11-09 Behdad Esfahbod * examples/renderdemo.c (make_layout): Set layout wrapping to PANGO_WRAP_WORD_CHAR if width is set for the layout. Setting width didn't have any effect previously. * pango/pango-layout.c (process_item): Remove the excess letter_spacing adjustment on the item width. (#168593, Damon Chaplin) * pango/pango-markup.c (pango_parse_markup), pango/querymodules.c: Replace g_string_new ("") with g_string_new (NULL). * pango/pangoft2.c: Use g_malloc'ed memory for unknown FreeType2 error, instead of static buffer. --- pango/querymodules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pango/querymodules.c b/pango/querymodules.c index fc0fbe4b..8eb32fc7 100644 --- a/pango/querymodules.c +++ b/pango/querymodules.c @@ -60,7 +60,7 @@ string_needs_escape (const char *str) static char * escape_string (const char *str) { - GString *result = g_string_new (""); + GString *result = g_string_new (NULL); while (TRUE) { -- cgit v1.2.1