From 37e5b705e7308a103cfa39b0e113d273104ca106 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 17 Mar 2018 18:17:25 +0100 Subject: [PATCH] Fix wrong "_nth_" replacement in ba202cc09 --- gtk2_ardour/editor_pt_import.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_pt_import.cc b/gtk2_ardour/editor_pt_import.cc index 2f5c4b9acf..ea583664ec 100644 --- a/gtk2_ardour/editor_pt_import.cc +++ b/gtk2_ardour/editor_pt_import.cc @@ -232,7 +232,7 @@ Editor::do_ptimport (std::string ptpath, vector::iterator found; if ((found = std::find (lookuptr, usedtracks.end (), utr)) != usedtracks.end ()) { DEBUG_TRACE (DEBUG::FileUtils, string_compose ("\twav(%1) reg(%2) ptf_tr(%3) ard_tr(%4)\n", a->reg.wave.filename.c_str (), a->reg.index, found->index1, found->index2)); - existing_track = midi_tracks.at (found->index2); + existing_track = get_nth_selected_audio_track (found->index2); // FIXME, don't rely on selection /* Put on existing track */ boost::shared_ptr playlist = existing_track->playlist (); boost::shared_ptr copy (RegionFactory::create (r, true));