fix for crashing bug with empty panners

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5927 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-10-26 20:08:00 +00:00
parent cc15fb071f
commit 9a5828e27a
1 changed files with 4 additions and 0 deletions

View File

@ -204,6 +204,10 @@ PannerUI::build_astyle_menu ()
PBD::Controllable*
PannerUI::get_controllable()
{
if (pan_bars.empty()) {
return 0;
}
return pan_bars[0]->get_controllable();
}