Avoid SIGFPE at wide zoom setting with looped regions.

This commit is contained in:
Jonathan Moore Liles 2008-07-13 00:59:59 -05:00
parent dbc73860ca
commit 3330619e9a
1 changed files with 3 additions and 0 deletions

View File

@ -514,6 +514,9 @@ Audio_Region::draw ( void )
int loop_peaks_needed = _loop ? timeline->ts_to_x( _loop ) : timeline->ts_to_x( _clip->length() ); int loop_peaks_needed = _loop ? timeline->ts_to_x( _loop ) : timeline->ts_to_x( _clip->length() );
if ( ! loop_peaks_needed )
break;
if ( ! xo ) /* first loop... */ if ( ! xo ) /* first loop... */
{ {
if ( _loop ) if ( _loop )