From a0c5de281a2ba029a9af53a6ffe3a717280998b3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 18 Jun 2013 08:22:25 -0400 Subject: [PATCH] fix crash when recording, because the audioregion view has no frame handles --- gtk2_ardour/audio_region_view.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/audio_region_view.cc b/gtk2_ardour/audio_region_view.cc index bfce754b70..fbe3c41264 100644 --- a/gtk2_ardour/audio_region_view.cc +++ b/gtk2_ardour/audio_region_view.cc @@ -234,8 +234,12 @@ AudioRegionView::init (Gdk::Color const & basic_color, bool wfd) setup_waveform_shape (); setup_waveform_scale (); - frame_handle_start->raise_to_top (); - frame_handle_end->raise_to_top (); + if (frame_handle_start) { + frame_handle_start->raise_to_top (); + } + if (frame_handle_end) { + frame_handle_end->raise_to_top (); + } /* XXX sync mark drag? */ }