mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
Fix crash when resetting all peak-meters with VCAs.
This commit is contained in:
parent
b330a8a0ce
commit
98c0adda49
1 changed files with 4 additions and 0 deletions
|
|
@ -417,6 +417,10 @@ GainMeterBase::peak_button_release (GdkEventButton* ev)
|
||||||
void
|
void
|
||||||
GainMeterBase::reset_peak_display ()
|
GainMeterBase::reset_peak_display ()
|
||||||
{
|
{
|
||||||
|
if (!_route) {
|
||||||
|
// catch "reset all" for VCAs
|
||||||
|
return;
|
||||||
|
}
|
||||||
_meter->reset_max();
|
_meter->reset_max();
|
||||||
level_meter->clear_meters();
|
level_meter->clear_meters();
|
||||||
max_peak = minus_infinity ();
|
max_peak = minus_infinity ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue