Editor-mixer-strip: fix intermittent crash if we try to set up gui before set_route() is called (amends d2032d)

This commit is contained in:
Ben Loftis 2020-04-04 12:03:45 -05:00
parent d2032df2e5
commit bb925ea151

View file

@ -2069,6 +2069,10 @@ RouteUI::setup_invert_buttons ()
void
RouteUI::update_polarity_display ()
{
if (!_route) {
return;
}
uint32_t const N = _route->phase_control()->size();
if (N > _max_invert_buttons) {