From 4db277056fac078c057cfc51ce9d4cee19c89d71 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 1 Aug 2013 03:17:49 +0200 Subject: [PATCH] re-check meterbridge metric-area on route deletion fixes http://tracker.ardour.org/view.php?id=5616#c15204 --- gtk2_ardour/meter_strip.cc | 6 ++++-- gtk2_ardour/meterbridge.cc | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/meter_strip.cc b/gtk2_ardour/meter_strip.cc index ede9cc2074..703870ecef 100644 --- a/gtk2_ardour/meter_strip.cc +++ b/gtk2_ardour/meter_strip.cc @@ -280,8 +280,10 @@ MeterStrip::MeterStrip (Session* sess, boost::shared_ptr rt) MeterStrip::~MeterStrip () { - delete level_meter; - CatchDeletion (this); + if (level_meter) { + delete level_meter; + CatchDeletion (this); + } } void diff --git a/gtk2_ardour/meterbridge.cc b/gtk2_ardour/meterbridge.cc index a0110365c1..4a4f1dd8dd 100644 --- a/gtk2_ardour/meterbridge.cc +++ b/gtk2_ardour/meterbridge.cc @@ -632,6 +632,8 @@ Meterbridge::remove_strip (MeterStrip* strip) break; } } + + resync_order(); } void