From c006ff176250a01621437907652ef012789dba2f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 19 Feb 2009 18:10:50 +0000 Subject: [PATCH] Fix crash when using pencil on empty track areas while zoomer is fully zoomed out (and probably pretty much everything else when track is fully zoomed out...). git-svn-id: svn://localhost/ardour2/branches/3.0@4640 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/midi_streamview.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/midi_streamview.cc b/gtk2_ardour/midi_streamview.cc index 5bb232bded..4e1afffbfb 100644 --- a/gtk2_ardour/midi_streamview.cc +++ b/gtk2_ardour/midi_streamview.cc @@ -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*