diff options
Diffstat (limited to 'gtk2_ardour/editor_timefx.cc')
-rw-r--r-- | gtk2_ardour/editor_timefx.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gtk2_ardour/editor_timefx.cc b/gtk2_ardour/editor_timefx.cc index b5e68c1fd2..4339962a87 100644 --- a/gtk2_ardour/editor_timefx.cc +++ b/gtk2_ardour/editor_timefx.cc @@ -70,10 +70,9 @@ Editor::time_stretch (RegionSelection& regions, float fraction) return time_fx (regions, fraction, false); } else { // MIDI, just stretch - RouteTimeAxisViewPtr rtv = boost::dynamic_pointer_cast<RouteTimeAxisView> (regions.front()->get_time_axis_view()); - if (!rtv) { + RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (®ions.front()->get_time_axis_view()); + if (!rtv) return -1; - } boost::shared_ptr<Playlist> playlist = rtv->track()->diskstream()->playlist(); @@ -263,14 +262,14 @@ Editor::do_timefx (TimeFXDialog& dialog) } boost::shared_ptr<AudioRegion> region (arv->audio_region()); - TimeAxisViewPtr tv = arv->get_time_axis_view(); - RouteTimeAxisViewPtr rtv; + TimeAxisView* tv = &(arv->get_time_axis_view()); + RouteTimeAxisView* rtv; RegionSelection::iterator tmp; tmp = i; ++tmp; - if ((rtv = boost::dynamic_pointer_cast<RouteTimeAxisView> (tv)) == 0) { + if ((rtv = dynamic_cast<RouteTimeAxisView*> (tv)) == 0) { i = tmp; continue; } |