mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-01 11:27:45 +01:00
fix range dragging post-multi-marker changes
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3759 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
21ea541267
commit
e59facb581
1 changed files with 18 additions and 3 deletions
|
|
@ -2394,10 +2394,25 @@ Editor::marker_drag_motion_callback (ArdourCanvas::Item* item, GdkEvent* event)
|
|||
|
||||
if (real_location->is_mark()) {
|
||||
f_delta = newframe - copy_location->start();
|
||||
} else if (newframe < copy_location->end()) {
|
||||
f_delta = newframe - copy_location->end();
|
||||
} else {
|
||||
f_delta = newframe - copy_location->start ();
|
||||
|
||||
|
||||
switch (marker->type()) {
|
||||
case Marker::Start:
|
||||
case Marker::LoopStart:
|
||||
case Marker::PunchIn:
|
||||
f_delta = newframe - copy_location->start();
|
||||
break;
|
||||
|
||||
case Marker::End:
|
||||
case Marker::LoopEnd:
|
||||
case Marker::PunchOut:
|
||||
f_delta = newframe - copy_location->end();
|
||||
break;
|
||||
default:
|
||||
/* what kind of marker is this ? */
|
||||
return;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue