mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 12:45:45 +01:00
editor uses the session default time domain as its default time domain
This commit is contained in:
parent
71953a9929
commit
9461911a86
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue