FL/Fl_Text_Edit_Window: Don't die if initial text is NULL.
This commit is contained in:
parent
cfcf4cf1fb
commit
ddb5d4f7ab
|
@ -39,6 +39,7 @@ Function {fl_text_edit( const char *title, const char *button_text, const char *
|
||||||
|
|
||||||
tew.return_button->label( button_text );
|
tew.return_button->label( button_text );
|
||||||
tew.title_box->label( title );
|
tew.title_box->label( title );
|
||||||
|
if ( initial_text )
|
||||||
tew.text_editor->buffer()->text( initial_text );
|
tew.text_editor->buffer()->text( initial_text );
|
||||||
|
|
||||||
tew.show();
|
tew.show();
|
||||||
|
|
Loading…
Reference in New Issue