Use braces in BasicUI::jump_by_bars()
authorTim Mayberry <mojofunk@gmail.com>
Tue, 16 May 2017 01:04:37 +0000 (11:04 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Mon, 22 May 2017 23:13:27 +0000 (09:13 +1000)
libs/surfaces/control_protocol/basic_ui.cc

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