Fix crash on opening return UI.

git-svn-id: svn://localhost/ardour2/branches/3.0@6177 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-11-25 16:16:54 +00:00
parent 9f68797e82
commit e81ee94d47

View file

@ -861,7 +861,7 @@ GainMeter::set_controls (boost::shared_ptr<Route> r,
gain_display_box.pack_end (peak_display, true, true);
hbox.pack_end (*level_meter, true, true);
if (!r->is_hidden()) {
if (r && !r->is_hidden()) {
fader_vbox->pack_start (gain_automation_state_button, false, false, 0);
}