mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
fix incorrect logic check for null session
This commit is contained in:
parent
c2d197a103
commit
fcdf7018c5
1 changed files with 2 additions and 2 deletions
|
|
@ -845,13 +845,13 @@ AudioClock::set (timepos_t const & w, bool force, timecnt_t const & offset)
|
|||
{
|
||||
timepos_t when (w);
|
||||
|
||||
if ((!force && !is_visible()) || _session) {
|
||||
if ((!force && !is_visible()) || !_session) {
|
||||
return;
|
||||
}
|
||||
|
||||
_offset = offset;
|
||||
if (is_duration) {
|
||||
when = timepos_t (offset - when);
|
||||
when = when.earlier (offset);
|
||||
}
|
||||
|
||||
if (when > _limit_pos) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue