mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 21:25:46 +01:00
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
This commit is contained in:
parent
5eea44c6cd
commit
1759b4b9bd
1 changed files with 7 additions and 1 deletions
|
|
@ -150,7 +150,13 @@ AutomationTimeAxisView::AutomationTimeAxisView (Session& s, boost::shared_ptr<Ro
|
|||
controls_frame.set_shadow_type (Gtk::SHADOW_ETCHED_OUT);
|
||||
|
||||
XMLNode* xml_node = get_parent_with_state()->get_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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue