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:
parent
cc15fb071f
commit
9a5828e27a
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue