Update default time-domain logic
MinSec, CD-Frame, and Timecode grid should use AudoTime
This commit is contained in:
parent
7cd16d9473
commit
8d4516228a
@ -6707,9 +6707,22 @@ Editor::duration_to_pixels_unrounded (timecnt_t const & dur) const
|
|||||||
Temporal::TimeDomain
|
Temporal::TimeDomain
|
||||||
Editor::default_time_domain () const
|
Editor::default_time_domain () const
|
||||||
{
|
{
|
||||||
if (_grid_type == GridTypeNone || _snap_mode == SnapOff) {
|
if (_snap_mode == SnapOff) {
|
||||||
return AudioTime;
|
return AudioTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch (_grid_type) {
|
||||||
|
case GridTypeNone:
|
||||||
|
/* fallthrough */
|
||||||
|
case GridTypeMinSec:
|
||||||
|
/* fallthrough */
|
||||||
|
case GridTypeCDFrame:
|
||||||
|
/* fallthrough */
|
||||||
|
case GridTypeTimecode:
|
||||||
|
/* fallthrough */
|
||||||
|
return AudioTime;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
return BeatTime;
|
return BeatTime;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user