Browse Source

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

tags/non-daw-v1.2.0
Jonathan Moore Liles 13 years ago
parent
commit
ddb5d4f7ab
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      FL/Fl_Text_Edit_Window.fl

+ 2
- 1
FL/Fl_Text_Edit_Window.fl 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.return_button->label( button_text );
tew.title_box->label( title ); tew.title_box->label( title );
tew.text_editor->buffer()->text( initial_text );
if ( initial_text )
tew.text_editor->buffer()->text( initial_text );


tew.show(); tew.show();




Loading…
Cancel
Save