From 1759b4b9bd10abbb9f3f074b5e0e22c9b3c1ce37 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 20 Nov 2006 18:57:21 +0000 Subject: fix for a crashing bug when loading a 0.99 session, with some debug output git-svn-id: svn://localhost/ardour2/trunk@1145 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/automation_time_axis.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/automation_time_axis.cc') diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index 2efb621b37..50a2fc9b08 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -150,7 +150,13 @@ AutomationTimeAxisView::AutomationTimeAxisView (Session& s, boost::shared_ptrget_child_xml_node (_state_name); - set_state (*xml_node); + + if (xml_node) { + set_state (*xml_node); + } else { + cerr << _name << ": looked for state named \"" << _state_name << "\" in parent (" + << get_parent_with_state()->name() << ") but found nothing\n"; + } /* make sure labels etc. are correct */ -- cgit v1.2.3