From 25842b89a7c89f54fe87e8d6ce2732b67024e818 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Fri, 13 Jun 2008 23:53:20 -0500 Subject: [PATCH] Minor cleanup. --- src/event_list.C | 2 ++ src/grid.C | 2 ++ src/main.C | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/event_list.C b/src/event_list.C index 4c4e05f..4c513ff 100644 --- a/src/event_list.C +++ b/src/event_list.C @@ -484,6 +484,7 @@ event_list::insert_time ( tick_t start, tick_t l ) continue; if ( ts >= start ) + { if ( e->is_note_on() ) { /* only notes ENTIRELY WITHIN the range will be moved */ @@ -492,6 +493,7 @@ event_list::insert_time ( tick_t start, tick_t l ) } else e->timestamp( e->timestamp() + l ); + } } } diff --git a/src/grid.C b/src/grid.C index 9b48649..762032e 100644 --- a/src/grid.C +++ b/src/grid.C @@ -464,10 +464,12 @@ Grid::toggle_select ( int x, int y ) event *e = _event( x, y, true ); if ( e ) + { if ( e->selected() ) e->deselect(); else e->select(); + } unlock(); } diff --git a/src/main.C b/src/main.C index 8956ebf..3ad377c 100644 --- a/src/main.C +++ b/src/main.C @@ -180,10 +180,12 @@ main ( int argc, char **argv ) ASSERTION( "Could not initialize MIDI system! (is Jack running and with MIDI ports enabled?)" ); if ( ! transport.valid ) + { if ( transport.master ) ASSERTION( "The version of JACK you are using does not appear to be capable of passing BBT positional information." ); else ASSERTION( "Either the version of JACK you are using does pass BBT information, or the current timebase master does not provide it." ); + } song.dirty( false );