13
0

Merge branch 'ardour'

This commit is contained in:
Robin Gareus 2024-07-10 12:36:23 +02:00
commit f200962c49
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -7256,7 +7256,15 @@ Editor::default_time_domain () const
void void
Editor::start_track_drag (TimeAxisView& tav, int y, Gtk::Widget& w, bool can_change_cursor) Editor::start_track_drag (TimeAxisView& tav, int y, Gtk::Widget& w, bool can_change_cursor)
{ {
track_drag = new TrackDrag (dynamic_cast<RouteTimeAxisView*> (&tav), *_session); RouteTimeAxisView* rtav = dynamic_cast<RouteTimeAxisView*> (&tav);
/* We do not allow dragging VCA Masters */
if (!rtav) {
return;
}
track_drag = new TrackDrag (rtav, *_session);
DEBUG_TRACE (DEBUG::TrackDrag, string_compose ("start track drag with %1\n", track_drag)); DEBUG_TRACE (DEBUG::TrackDrag, string_compose ("start track drag with %1\n", track_drag));
int xo, yo; int xo, yo;