Don't make an assertion when drawing empty regions.
This commit is contained in:
parent
87ad823288
commit
4e1ece8954
|
@ -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;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue