fix drop silence on track segv, dont deselect on drop, set expanders if plugins dropped
authorGood Guy <[email protected]>
Sat, 29 Dec 2018 01:27:38 +0000 (18:27 -0700)
committerGood Guy <[email protected]>
Sat, 29 Dec 2018 01:27:38 +0000 (18:27 -0700)
cinelerra-5.1/cinelerra/mwindowedit.C
cinelerra-5.1/cinelerra/trackcanvas.C

index bf57912ff612df7db42e3a406d5219da6946fd42..1ce258fc4c8a77d9c1725bd4ef9a2d07a4f6b46f 100644 (file)
@@ -1198,6 +1198,7 @@ void MWindow::move_group(EDL *group, Track *first_track, double position)
                                        track->plugin_set[i] = dst_plugin_set;
                                }
                                Plugin *plugin = (Plugin *)plugin_set->first;
+                               if( plugin ) track->expand_view = 1;
                                for( ; plugin; plugin=(Plugin *)plugin->next ) {
                                        int64_t start = pos + plugin->startproject;
                                        int64_t end = start + plugin->length;
@@ -1217,7 +1218,8 @@ void MWindow::move_group(EDL *group, Track *first_track, double position)
                track->optimize();
                src = src->next;
        }
-       edl->tracks->clear_selected_edits();
+// big debate over whether to do this, must either clear selected, or no tweaking
+//     edl->tracks->clear_selected_edits();
 
        save_backup();
        undo->update_undo_after(_("move group"), LOAD_ALL);
index 72c9d009ac40aa48c86ce0e79340e8d014344b6e..3d152c71bfa5eb6bc272a7eabfd878699f3bb6ed 100644 (file)
@@ -5040,11 +5040,11 @@ int TrackCanvas::do_plugins(int cursor_x, int cursor_y, int drag_start,
                }
                else
 // Move plugin
-               if(drag_start && plugin->track->record) {
-                       if(mwindow->edl->session->editing_mode == EDITING_ARROW) {
-                               if(plugin->track->data_type == TRACK_AUDIO)
+               if( drag_start && plugin->track->record && !plugin->silence() ) {
+                       if( mwindow->edl->session->editing_mode == EDITING_ARROW ) {
+                               if( plugin->track->data_type == TRACK_AUDIO )
                                        mwindow->session->current_operation = DRAG_AEFFECT_COPY;
-                               else if(plugin->track->data_type == TRACK_VIDEO)
+                               else if( plugin->track->data_type == TRACK_VIDEO )
                                        mwindow->session->current_operation = DRAG_VEFFECT_COPY;
 
                                mwindow->session->drag_plugin = plugin;