mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +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);
|
timepos_t when (w);
|
||||||
|
|
||||||
if ((!force && !is_visible()) || _session) {
|
if ((!force && !is_visible()) || !_session) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_offset = offset;
|
_offset = offset;
|
||||||
if (is_duration) {
|
if (is_duration) {
|
||||||
when = timepos_t (offset - when);
|
when = when.earlier (offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (when > _limit_pos) {
|
if (when > _limit_pos) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue