summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2005-11-09 08:48:24 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2005-11-09 08:48:24 +0000
commiteb1c56c734284b8d72da7214299acd9204b3ef79 (patch)
treec7d29d16f71cc2eeda5b87008fb00930c09e9a23
parenta671bf6772c2341ecb3bef9f6b0671603d2f9619 (diff)
downloadpango-eb1c56c734284b8d72da7214299acd9204b3ef79.tar.gz
Set layout wrapping to PANGO_WRAP_WORD_CHAR if width is set for the
2005-11-09 Behdad Esfahbod <behdad@gnome.org> * 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.
-rw-r--r--pango/querymodules.c2
1 files changed, 1 insertions, 1 deletions
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)
{