X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fplugindialog.C;h=e4a2cce302126d27aab16c953c64cce7830c28c5;hb=5621db270ccbeabc106e0f438941dba6f930652b;hp=5ce006c00fc2dc1bbf87da3601935da78267cfa9;hpb=723142d62d61cde588e961426440f839ca9dcda9;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/plugindialog.C b/cinelerra-5.1/cinelerra/plugindialog.C index 5ce006c0..e4a2cce3 100644 --- a/cinelerra-5.1/cinelerra/plugindialog.C +++ b/cinelerra-5.1/cinelerra/plugindialog.C @@ -266,11 +266,9 @@ void PluginDialog::create_objects() Track *track = mwindow->edl->tracks->number(plugin_locations.values[i]->module); char *track_title = track->title; int number = plugin_locations.values[i]->plugin; - Plugin *plugin = track->get_current_plugin(mwindow->edl->local_session->get_selectionstart(1), - number, - PLAY_FORWARD, - 1, - 0); + double start = mwindow->edl->local_session->get_selectionstart(1); + Plugin *plugin = track->get_current_plugin(start, number, PLAY_FORWARD, 1, 0); + if( !plugin ) continue; char string[BCTEXTLEN]; const char *plugin_title = _(plugin->title); snprintf(string, sizeof(string), "%s: %s", track_title, plugin_title); @@ -438,9 +436,9 @@ int PluginDialog::resize_event(int w, int h) if(single_standalone) - single_standalone->reposition_window(mwindow->theme->plugindialog_new_x, - mwindow->theme->plugindialog_new_y + - mwindow->theme->plugindialog_new_h + + single_standalone->reposition_window( + mwindow->theme->plugindialog_new_x + BC_OKButton::calculate_w() + 10, + mwindow->theme->plugindialog_new_y + mwindow->theme->plugindialog_new_h + get_text_height(MEDIUMFONT)); flush(); @@ -722,7 +720,7 @@ void PluginDialog::load_plugin_list(int redraw) const char *text = search_text->get_text(); for( int i=0; ititle; + const char *title = _(plugindb.values[i]->title); if( text && text[0] && !bstrcasestr(title, text) ) continue; standalone_data.append(new PluginDialogListItem(title, i)); } @@ -747,7 +745,7 @@ PluginDialogSingle::PluginDialogSingle(PluginDialog *dialog, int x, int y) : BC_CheckBox(x, y, dialog->thread->single_standalone, - _("Attach single standlone and share others")) + _("Attach single standalone and share others")) { this->dialog = dialog; }