diff --git a/mixer/src/DPM.C b/mixer/src/DPM.C index d193a75..3d7d0a9 100644 --- a/mixer/src/DPM.C +++ b/mixer/src/DPM.C @@ -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 );