13
0

Ensure we have a region _beat for legacy sessions, set _pulse unconditionally when loading from xml.

This commit is contained in:
nick_m 2016-10-09 03:34:13 +11:00
parent d8ef412089
commit b1df56d531

View File

@ -1311,13 +1311,15 @@ Region::_set_state (const XMLNode& node, int /*version*/, PropertyChange& what_c
&bbt_time.beats,
&bbt_time.ticks) != 3) {
_position_lock_style = AudioTime;
_beat = _session.tempo_map().beat_at_frame (_position);
} else {
_beat = _session.tempo_map().beat_at_bbt (bbt_time);
_pulse = _session.tempo_map().pulse_at_beat (_beat);
}
}
}
_pulse = _session.tempo_map().pulse_at_beat (_beat);
/* fix problems with old sessions corrupted by impossible
values for _stretch or _shift
*/