1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

Small clang-analyze pleaser

This commit is contained in:
Dave Davenport 2016-01-11 21:25:38 +01:00
parent f080aa2d61
commit 95dbbf6616

View file

@ -141,11 +141,11 @@ static void __textbox_update_pango_text ( textbox *tb )
pango_layout_set_text ( tb->layout, string, l ); pango_layout_set_text ( tb->layout, string, l );
} }
else if ( tb->flags & TB_MARKUP || tb->tbft & MARKUP ) { 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 { else {
pango_layout_set_attributes ( tb->layout, NULL ); 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);
} }
} }