Another possible NULL pointer fix.

This commit is contained in:
QC 2015-01-07 17:48:10 +01:00
parent 7428d94612
commit 79909cd807
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ void textbox_draw ( textbox *tb )
int cursor_x = 0;
int cursor_width = MAX ( 2, font_height / 10 );
pango_layout_set_text ( tb->layout, tb->text, strlen ( tb->text ) );
pango_layout_set_text ( tb->layout, text, text_len );
if ( tb->flags & TB_EDITABLE ) {
PangoRectangle pos;