13
0

Time info box updates its length display correctly over a tempo change

This commit is contained in:
nick_m 2017-06-17 04:09:48 +10:00
parent fb761a6fa7
commit 29e580a249

View File

@ -275,7 +275,7 @@ TimeInfoBox::selection_changed ()
selection_length->set_off (false);
selection_start->set (selection.time.start());
selection_end->set (selection.time.end_frame());
selection_length->set (selection.time.length());
selection_length->set (selection.time.end_frame(), false, selection.time.start());
} else {
selection_start->set_off (true);
selection_end->set_off (true);
@ -294,7 +294,7 @@ TimeInfoBox::selection_changed ()
selection_length->set_off (false);
selection_start->set (s);
selection_end->set (e);
selection_length->set (e - s + 1);
selection_length->set (e, false, s);
}
} else {
/* this is more efficient than tracking changes per region in large selections */
@ -327,7 +327,7 @@ TimeInfoBox::selection_changed ()
selection_length->set_off (false);
selection_start->set (s);
selection_end->set (e);
selection_length->set (e - s + 1);
selection_length->set (e, false, s);
} else {
selection_start->set_off (true);
selection_end->set_off (true);
@ -339,7 +339,7 @@ TimeInfoBox::selection_changed ()
selection_length->set_off (false);
selection_start->set (selection.time.start());
selection_end->set (selection.time.end_frame());
selection_length->set (selection.time.length());
selection_length->set (selection.time.end_frame(), false, selection.time.start());
}
break;