use editor tempo editing API rather than TempoMap API
This commit is contained in:
parent
f9353243c2
commit
eff34f2e1b
|
@ -2493,6 +2493,7 @@ private:
|
|||
friend class MeterMarkerDrag;
|
||||
friend class TempoMarkerDrag;
|
||||
friend class TempoTwistDrag;
|
||||
friend class TempoEndDrag;
|
||||
friend class CursorDrag;
|
||||
friend class FadeInDrag;
|
||||
friend class FadeOutDrag;
|
||||
|
|
|
@ -3930,7 +3930,7 @@ TempoEndDrag::start_grab (GdkEvent* event, Gdk::Cursor* cursor)
|
|||
{
|
||||
Drag::start_grab (event, cursor);
|
||||
|
||||
map = TempoMap::fetch_writable();
|
||||
map = _editor->begin_tempo_map_edit ();
|
||||
|
||||
/* get current state */
|
||||
_before_state = &map->get_state();
|
||||
|
@ -3994,7 +3994,7 @@ void
|
|||
TempoEndDrag::finished (GdkEvent* event, bool movement_occurred)
|
||||
{
|
||||
if (!movement_occurred || !_drag_valid) {
|
||||
TempoMap::abort_update ();
|
||||
_editor->abort_tempo_map_edit ();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue