olaf neophyte and de.po updates, valgrind tweaks, delete green lady, inkscape dpi=96
[goodguy/history.git] / cinelerra-5.1 / cinelerra / plugindialog.C
index 878d1d00b496537d28f9707fd4dd09ec853543a2..439a6efb5d5feffb6d83f6b48bae9b94fd412dc7 100644 (file)
@@ -53,10 +53,7 @@ PluginDialogThread::~PluginDialogThread()
 }
 
 void PluginDialogThread::start_window(Track *track,
-       Plugin *plugin,
-       const char *title,
-       int is_mainmenu,
-       int data_type)
+       Plugin *plugin, const char *title, int is_mainmenu, int data_type)
 {
        if(!BC_DialogThread::is_running())
        {
@@ -266,11 +263,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 +433,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();
@@ -747,7 +742,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;
 }