Fix crash when using pencil on empty track areas while zoomer is fully zoomed out...
authorDavid Robillard <d@drobilla.net>
Thu, 19 Feb 2009 18:10:50 +0000 (18:10 +0000)
committerDavid Robillard <d@drobilla.net>
Thu, 19 Feb 2009 18:10:50 +0000 (18:10 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@4640 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/midi_streamview.cc

index 5bb232bdedf116d8b39e70a5daf966a2cd5a5137..4e1afffbfbf47bb734ec79369b56a496c7650cdb 100644 (file)
@@ -125,8 +125,8 @@ veto_note_range(uint8_t& min, uint8_t& max)
                }
        }
        assert(max - min >= 11);
-       assert(max < 127);
-       assert(min < 127);
+       assert(max <= 127);
+       assert(min <= 127);
 }
 
 RegionView*