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:
Paul Davis 2008-09-19 14:27:30 +00:00
parent 21ea541267
commit e59facb581

View file

@ -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;
}