diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-12-08 23:22:01 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-12-08 23:22:01 +0000 |
commit | d28ecb2b93540e64a7c8dc820dcb6dcedc17a550 (patch) | |
tree | 9cf8291dda21039ea239e5fedf740afbb1e76c82 /libs/ardour/route.cc | |
parent | f17661208686f7237efc902c61028462af75a240 (diff) |
fix for Route::shift/insert-time
git-svn-id: svn://localhost/ardour2/branches/3.0@8225 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 5de42c0b96..55b3a59f51 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -3249,11 +3249,13 @@ Route::shift (framepos_t pos, framecnt_t frames) for (uint32_t p = 0; p < npans; ++p) { pc = _main_outs->panner()->pan_control (0, p); - boost::shared_ptr<AutomationList> al = pc->alist(); - XMLNode& before = al->get_state (); - al->shift (pos, frames); - XMLNode& after = al->get_state (); - _session.add_command (new MementoCommand<AutomationList> (*al.get(), &before, &after)); + if (pc) { + boost::shared_ptr<AutomationList> al = pc->alist(); + XMLNode& before = al->get_state (); + al->shift (pos, frames); + XMLNode& after = al->get_state (); + _session.add_command (new MementoCommand<AutomationList> (*al.get(), &before, &after)); + } } } |