From ddb5d4f7ab646d63493219391a83719dd71632ac Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Tue, 23 Oct 2012 20:31:42 -0700 Subject: [PATCH] FL/Fl_Text_Edit_Window: Don't die if initial text is NULL. --- FL/Fl_Text_Edit_Window.fl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FL/Fl_Text_Edit_Window.fl b/FL/Fl_Text_Edit_Window.fl index 68c8ad2..4221dd3 100644 --- a/FL/Fl_Text_Edit_Window.fl +++ b/FL/Fl_Text_Edit_Window.fl @@ -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();