FL/Fl_Text_Edit_Window: Don't die if initial text is NULL.

pull/3/head
Jonathan Moore Liles 2012-10-23 20:31:42 -07:00
parent cfcf4cf1fb
commit ddb5d4f7ab
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ Function {fl_text_edit( const char *title, const char *button_text, const char *
tew.return_button->label( button_text );
tew.title_box->label( title );
tew.text_editor->buffer()->text( initial_text );
if ( initial_text )
tew.text_editor->buffer()->text( initial_text );
tew.show();