summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>2001-08-23 17:43:31 +0000
committerTim Janik <timj@src.gnome.org>2001-08-23 17:43:31 +0000
commit3f197135e3ce78858165852b3985c660029b409b (patch)
tree5908a45c818f816e71bb1c9342488a26fb0c5198 /pango/pango-layout.c
parent9a2e1914e525e56b7fcb25699e19c9667f2c5491 (diff)
downloadpango-3f197135e3ce78858165852b3985c660029b409b.tar.gz
pass "" as default text into pango_layout_set_text() as NULL isn't allowed
Thu Aug 23 19:44:34 2001 Tim Janik <timj@gtk.org> * pango/pango-layout.c (pango_layout_check_lines): pass "" as default text into pango_layout_set_text() as NULL isn't allowed anymore.
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r--pango/pango-layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 46436e11..82e97e9c 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -2775,7 +2775,7 @@ pango_layout_check_lines (PangoLayout *layout)
* is non-NULL even if it is zero length
*/
if (!layout->text)
- pango_layout_set_text (layout, NULL, 0);
+ pango_layout_set_text (layout, "", 0);
attrs = pango_layout_get_effective_attributes (layout);
iter = pango_attr_list_get_iterator (attrs);