diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-10 18:13:15 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-10 18:13:15 +0000 |
commit | 01471c8879869dc87a6a17d88c945728a3193325 (patch) | |
tree | fac9334ab21f112337d22f457a22547b46f00cd2 /libs/ardour/pannable.cc | |
parent | ed48b97900e41c68918d613e5deac3f57f0213df (diff) |
break circular reference between panners and pannables; more destruction debug tracing; a little more boost debug stuff
git-svn-id: svn://localhost/ardour2/branches/3.0@8822 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/pannable.cc')
-rw-r--r-- | libs/ardour/pannable.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/pannable.cc b/libs/ardour/pannable.cc index 1a56fe87cb..b4744d5658 100644 --- a/libs/ardour/pannable.cc +++ b/libs/ardour/pannable.cc @@ -256,8 +256,10 @@ Pannable::set_state (const XMLNode& root, int /*version - not used*/) string Pannable::value_as_string (boost::shared_ptr<AutomationControl> ac) const { - if (_panner) { - return _panner->value_as_string (ac); + boost::shared_ptr<Panner> p = panner (); + + if (p) { + return p->value_as_string (ac); } return Automatable::value_as_string (ac); |