View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0007151 | ardour | features | public | 2016-11-28 05:32 | 2016-11-28 05:33 |
| Reporter | elgoun | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | new | Resolution | open | ||
| Product Version | 5.X git (version in description) | ||||
| Summary | 0007151: When duplicating a track, stacked tracks should be duplicated stacked | ||||
| Description | When duplicating a track, stacked tracks should be duplicated stacked | ||||
| Steps To Reproduce | Create a track and add regions that overlap. Set Layers->Stacked Duplicate this track. The duplicated track is displayed "Overlaid" | ||||
| Additional Information | Attached a patch that fix it. | ||||
| Tags | No tags attached. | ||||
|
|
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.
|