Mixer: Fix divide by zero in DPM.

pull/3/head
Jonathan Moore Liles 2012-06-23 21:49:21 -07:00
parent be3c9c6412
commit 7f8de0710a
1 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,8 @@ DPM::resize ( int X, int Y, int W, int H )
void
DPM::draw ( void )
{
if ( !_segments )
return;
snprintf( peak_string, sizeof( peak_string ), "%.1f", peak() );
tooltip( peak_string );