Fix crash when resetting all peak-meters with VCAs.

This commit is contained in:
Robin Gareus 2016-12-21 15:14:51 +01:00
parent b330a8a0ce
commit 98c0adda49

View File

@ -417,6 +417,10 @@ GainMeterBase::peak_button_release (GdkEventButton* ev)
void
GainMeterBase::reset_peak_display ()
{
if (!_route) {
// catch "reset all" for VCAs
return;
}
_meter->reset_max();
level_meter->clear_meters();
max_peak = minus_infinity ();