From 4e1ece89546a8357d311af1aaec32aeb9947618c Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sat, 27 Dec 2008 15:42:27 -0600 Subject: [PATCH] Don't make an assertion when drawing empty regions. --- Timeline/Audio_Region.C | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Timeline/Audio_Region.C b/Timeline/Audio_Region.C index 0e677be..2b2a6a9 100644 --- a/Timeline/Audio_Region.C +++ b/Timeline/Audio_Region.C @@ -584,10 +584,8 @@ Audio_Region::draw ( void ) // DMESSAGE( "using cached peaks" ); } - if ( peaks ) + if ( peaks && pbuf ) { - assert( pbuf ); - int ch = (h() - Fl::box_dh( box() )) / channels;