editor uses the session default time domain as its default time domain

This commit is contained in:
Paul Davis 2023-07-21 19:04:54 -06:00
parent 71953a9929
commit 9461911a86
1 changed files with 6 additions and 0 deletions

View File

@ -6845,6 +6845,12 @@ Editor::duration_to_pixels_unrounded (timecnt_t const & dur) const
Temporal::TimeDomain
Editor::default_time_domain () const
{
if (_session) {
return _session->config.get_default_time_domain();
}
/* Probably never reached */
if (_snap_mode == SnapOff) {
return AudioTime;
}