diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-01-11 21:25:38 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-01-11 21:25:38 +0100 |
commit | 95dbbf6616b84426e40d1439b8a9b6dc9de7a485 (patch) | |
tree | 7b9d41e5131848e304962cd1bbef18d629563a6b /source | |
parent | f080aa2d61d5eaba1dba1d669b0e4306fd26558d (diff) |
Small clang-analyze pleaser
Diffstat (limited to 'source')
-rw-r--r-- | source/textbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/textbox.c b/source/textbox.c index b0e5d58e..eed72705 100644 --- a/source/textbox.c +++ b/source/textbox.c @@ -141,11 +141,11 @@ static void __textbox_update_pango_text ( textbox *tb ) pango_layout_set_text ( tb->layout, string, l ); } else if ( tb->flags & TB_MARKUP || tb->tbft & MARKUP ) { - pango_layout_set_markup ( tb->layout, tb->text, strlen ( tb->text ) ); + pango_layout_set_markup ( tb->layout, tb->text, -1 ); } else { pango_layout_set_attributes ( tb->layout, NULL ); - pango_layout_set_text ( tb->layout, tb->text, strlen ( tb->text ) ); + pango_layout_set_text ( tb->layout, tb->text, -1); } } |