- keyframe_data[0].append(new BC_ListBoxItem((char*)"TEXT"));
- keyframe_data[1].append(new BC_ListBoxItem(text));
- keyframe_data[0].append(new BC_ListBoxItem((char*)"DATA"));
- keyframe_data[1].append(new BC_ListBoxItem(data));
-
+ if( text ) {
+ keyframe_data[0].append(new BC_ListBoxItem((char*)"TEXT"));
+ keyframe_data[1].append(new BC_ListBoxItem(text));
+ }
+ if( data ) {
+ keyframe_data[0].append(new BC_ListBoxItem((char*)"DATA"));
+ keyframe_data[1].append(new BC_ListBoxItem(data));
+ }