FL/Fl_Text_Edit_Window: Don't die if initial text is NULL.
This commit is contained in:
parent
cfcf4cf1fb
commit
ddb5d4f7ab
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue