View Issue Details

IDProjectCategoryView StatusLast Update
0007151ardourfeaturespublic2016-11-28 05:33
Reporterelgoun Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version5.X git (version in description) 
Summary0007151: When duplicating a track, stacked tracks should be duplicated stacked
DescriptionWhen duplicating a track, stacked tracks should be duplicated stacked
Steps To ReproduceCreate a track and add regions that overlap.
Set Layers->Stacked
Duplicate this track.
The duplicated track is displayed "Overlaid"
Additional InformationAttached a patch that fix it.
TagsNo tags attached.

Activities

elgoun

2016-11-28 05:33

reporter  

fix-7151.patch (1,065 bytes)   
diff --git a/gtk2_ardour/duplicate_routes_dialog.cc b/gtk2_ardour/duplicate_routes_dialog.cc
index 1b97599..34ac806 100644
--- a/gtk2_ardour/duplicate_routes_dialog.cc
+++ b/gtk2_ardour/duplicate_routes_dialog.cc
@@ -173,6 +173,13 @@ DuplicateRouteDialog::on_response (int response)
 		XMLNode& state (rui->route()->get_state());
 		RouteList rl = _session->new_route_from_template (cnt, ARDOUR_UI::instance()->translate_order (insert_at()), state, std::string(), playlist_action);
 
+		/* Apply corresponding layer display to new dublicated tracks (the new current selection) */
+		TrackSelection duplicated_tracks = PublicEditor::instance().get_selection().tracks;
+		for (TrackSelection::iterator dt = duplicated_tracks.begin(); dt != duplicated_tracks.end(); ++dt) {
+			RouteTimeAxisView* rv = dynamic_cast<RouteTimeAxisView*> (*dt);
+			rv->set_layer_display((*t)->layer_display());
+		}
+
 		/* normally the state node would be added to a parent, and
 		 * ownership would transfer. Because we don't do that here,
 		 * we need to delete the node ourselves.
fix-7151.patch (1,065 bytes)   

Issue History

Date Modified Username Field Change
2016-11-28 05:32 elgoun New Issue
2016-11-28 05:33 elgoun File Added: fix-7151.patch