+
+Track *MainSession::drag_handle_track()
+{
+ Track *track = 0;
+ switch( current_operation ) {
+ case DRAG_EDITHANDLE1:
+ case DRAG_EDITHANDLE2:
+ track = drag_edit->edits->track;
+ break;
+ case DRAG_PLUGINHANDLE1:
+ case DRAG_PLUGINHANDLE2:
+ track = drag_plugin->edits->track;
+ break;
+ }
+ return track;
+}
+