summaryrefslogtreecommitdiffstats
path: root/source/textbox.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-01-11 21:25:38 +0100
committerDave Davenport <qball@gmpclient.org>2016-01-11 21:25:38 +0100
commit95dbbf6616b84426e40d1439b8a9b6dc9de7a485 (patch)
tree7b9d41e5131848e304962cd1bbef18d629563a6b /source/textbox.c
parentf080aa2d61d5eaba1dba1d669b0e4306fd26558d (diff)
Small clang-analyze pleaser
Diffstat (limited to 'source/textbox.c')
-rw-r--r--source/textbox.c4
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);
}
}