mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 22:25:46 +01:00
libtemporal: TempoMap::full_duration_at() returns correct value for unchanged time domain call
This commit is contained in:
parent
b7bc3b1947
commit
7773fc5b64
1 changed files with 2 additions and 1 deletions
|
|
@ -2392,7 +2392,8 @@ TempoMap::full_duration_at (timepos_t const & pos, timecnt_t const & duration, T
|
|||
superclock_t s;
|
||||
|
||||
if (return_domain == duration.time_domain()) {
|
||||
return duration;
|
||||
/* new timecnt_t: same distance, but new position */
|
||||
return timecnt_t (duration.distance(), pos);
|
||||
}
|
||||
|
||||
switch (return_domain) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue