X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fkeyframegui.C;h=a8f99a73c51f2003c35d51dc3112a0bcbe6855a2;hp=c60459c985cda012656ec4fcc90aebe390a79298;hb=502b6f3b6fd04f6b01c6d70dcb81aa304dd0db1c;hpb=2451d3174f3b64d3ce4e311b125813cf2881eca4 diff --git a/cinelerra-5.1/cinelerra/keyframegui.C b/cinelerra-5.1/cinelerra/keyframegui.C index c60459c9..a8f99a73 100644 --- a/cinelerra-5.1/cinelerra/keyframegui.C +++ b/cinelerra-5.1/cinelerra/keyframegui.C @@ -119,11 +119,14 @@ void KeyFrameThread::update_values() keyframe_data[0].append(new BC_ListBoxItem(hash.get_key(i))); keyframe_data[1].append(new BC_ListBoxItem(hash.get_value(i))); } - 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)); + } delete [] text; delete [] data; } @@ -146,6 +149,7 @@ void KeyFrameThread::start_window(Plugin *plugin, KeyFrame *keyframe) if( !mwindow->edl->tracks->plugin_exists(plugin) ) return; this->keyframe = keyframe; this->plugin = plugin; + this->preset_text[0] = 0; plugin->calculate_title(plugin_title, 0); sprintf(window_title, _("%s: %s Keyframe"), _(PROGRAM_NAME), plugin_title);