13
0

Use braces in BasicUI::jump_by_bars()

This commit is contained in:
Tim Mayberry 2017-05-16 11:04:37 +10:00
parent 7fe188ec92
commit 4d927c6bd4

View File

@ -409,7 +409,9 @@ BasicUI::jump_by_bars (double bars)
Timecode::BBT_Time bbt (tmap.bbt_at_frame (session->transport_frame())); Timecode::BBT_Time bbt (tmap.bbt_at_frame (session->transport_frame()));
bars += bbt.bars; bars += bbt.bars;
if (bars < 0) bars = 0; if (bars < 0) {
bars = 0;
}
AnyTime any; AnyTime any;
any.type = AnyTime::BBT; any.type = AnyTime::BBT;