Don't make an assertion when drawing empty regions.

This commit is contained in:
Jonathan Moore Liles 2008-12-27 15:42:27 -06:00
parent 87ad823288
commit 4e1ece8954
1 changed files with 1 additions and 3 deletions

View File

@ -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;