use newly added operator bool() for Evoral::Beats rather than double-negation as...
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 20 May 2015 12:16:29 +0000 (08:16 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 29 Jun 2015 18:18:14 +0000 (14:18 -0400)
gtk2_ardour/midi_region_view.cc

index 47e5510664991640a478817f41e9bd8feac063a2..16747693d5a3b07dfd33510018111254f48181ea 100644 (file)
@@ -2987,7 +2987,7 @@ MidiRegionView::trim_note (NoteBase* event, Evoral::Beats front_delta, Evoral::B
           if negative - move the end of the note earlier in time (shortening it)
        */
 
-       if (!!front_delta) {
+       if (front_delta) {
                if (front_delta < 0) {
 
                        if (event->note()->time() < -front_delta) {