mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
Fix failure to laod old tempo maps
I suspect this happened after an api change. Now, just use the position pair instead of a whole new variable.
This commit is contained in:
parent
b3fb75fead
commit
1a31134d38
1 changed files with 3 additions and 4 deletions
|
|
@ -553,14 +553,14 @@ MeterSection::MeterSection (const XMLNode& node, const framecnt_t sample_rate)
|
|||
{
|
||||
LocaleGuard lg;
|
||||
pair<double, BBT_Time> start;
|
||||
start.first = 0.0;
|
||||
|
||||
BBT_Time bbt;
|
||||
std::string bbt_str;
|
||||
if (node.get_property ("start", bbt_str)) {
|
||||
if (string_to_bbt_time (bbt_str, bbt)) {
|
||||
if (string_to_bbt_time (bbt_str, start.second)) {
|
||||
/* legacy session - start used to be in bbt*/
|
||||
info << _("Legacy session detected - MeterSection XML node will be altered.") << endmsg;
|
||||
set_pulse(-1.0);
|
||||
set_pulse (-1.0);
|
||||
} else {
|
||||
error << _("MeterSection XML node has an illegal \"start\" value") << endmsg;
|
||||
}
|
||||
|
|
@ -568,7 +568,6 @@ MeterSection::MeterSection (const XMLNode& node, const framecnt_t sample_rate)
|
|||
|
||||
MetricSection::set_state (node, Stateful::loading_state_version);
|
||||
|
||||
start.first = 0.0;
|
||||
node.get_property ("beat", start.first);
|
||||
|
||||
if (node.get_property ("bbt", bbt_str)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue