13
0

Set DnD time's time-domain

Drag::_raw_grab_time is set to the correct time-domain. However
during ::motion() and other operations the adjusted time was
always AudioTime.

Most notably this caused editor->selection->time to have
different time-domains for start and end.
This commit is contained in:
Robin Gareus 2023-09-28 00:41:17 +02:00
parent c4f6385d22
commit bed041cf96
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -427,6 +427,7 @@ Drag::adjusted_time (timepos_t const& f, GdkEvent const* event, bool snap) const
_editor->snap_to_with_modifier (pos, event); _editor->snap_to_with_modifier (pos, event);
} }
pos.set_time_domain (_time_domain);
return pos; return pos;
} }