diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-04-23 12:25:22 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-04-23 12:25:22 +0000 |
commit | f850ca1ba26e931bf4287eb95cb46a014fe33ccd (patch) | |
tree | 4b1ed3ae4267de12c6dc5a87b0ba4e66fc1c83fc /libs/ardour/session_command.cc | |
parent | f0def9bb888f5698796447b893b52ed0544c12e3 (diff) |
ardour_system.rc now has the same content as ardour.rc, to allow us to more easily add new variable/parameters when updating a user's configuration
git-svn-id: svn://localhost/ardour2/trunk@1739 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_command.cc')
-rw-r--r-- | libs/ardour/session_command.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/ardour/session_command.cc b/libs/ardour/session_command.cc index 53d01219b1..d7fc80aa4b 100644 --- a/libs/ardour/session_command.cc +++ b/libs/ardour/session_command.cc @@ -79,8 +79,11 @@ Session::memento_command_factory(XMLNode *n) /* create command */ string obj_T = n->property ("type_name")->value(); if (obj_T == typeid (AudioRegion).name() || obj_T == typeid (Region).name()) { - if (audio_regions.count(id)) + if (audio_regions.count(id)) { return new MementoCommand<AudioRegion>(*audio_regions[id], before, after); + } else { + cerr << "count failed for " << id << " though we have " << audio_regions.size() << endl; + } } else if (obj_T == typeid (AudioSource).name()) { if (audio_sources.count(id)) return new MementoCommand<AudioSource>(*audio_sources[id], before, after); @@ -105,6 +108,7 @@ Session::memento_command_factory(XMLNode *n) /* we failed */ error << string_compose (_("could not reconstitute MementoCommand from XMLNode. object type = %1 id = %2"), obj_T, id.to_s()) << endmsg; + return 0 ; } |