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

This commit is contained in:
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,6 +39,7 @@ Function {fl_text_edit( const char *title, const char *button_text, const char *
tew.return_button->label( button_text );
tew.title_box->label( title );
if ( initial_text )
tew.text_editor->buffer()->text( initial_text );
tew.show();