fix crashes caused by assert (_fx_line); item does not exist for livetrax
This commit is contained in:
parent
fc86629daf
commit
201580f7ba
|
@ -1105,8 +1105,6 @@ AudioRegionView::set_colors ()
|
||||||
{
|
{
|
||||||
RegionView::set_colors();
|
RegionView::set_colors();
|
||||||
|
|
||||||
assert (_fx_line);
|
|
||||||
|
|
||||||
set_fx_line_colors ();
|
set_fx_line_colors ();
|
||||||
set_waveform_colors ();
|
set_waveform_colors ();
|
||||||
|
|
||||||
|
@ -1263,7 +1261,9 @@ AudioRegionView::get_region_fx_line (PBD::ID& id, uint32_t& param_id)
|
||||||
void
|
void
|
||||||
AudioRegionView::update_envelope_visibility ()
|
AudioRegionView::update_envelope_visibility ()
|
||||||
{
|
{
|
||||||
assert (_fx_line);
|
if (!_fx_line) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (trackview.editor().current_mouse_mode() == Editing::MouseDraw || trackview.editor().current_mouse_mode() == Editing::MouseContent ) {
|
if (trackview.editor().current_mouse_mode() == Editing::MouseDraw || trackview.editor().current_mouse_mode() == Editing::MouseContent ) {
|
||||||
_fx_line->set_visibility (AutomationLine::VisibleAspects(AutomationLine::ControlPoints|AutomationLine::Line));
|
_fx_line->set_visibility (AutomationLine::VisibleAspects(AutomationLine::ControlPoints|AutomationLine::Line));
|
||||||
|
@ -1670,7 +1670,9 @@ AudioRegionView::color_handler ()
|
||||||
void
|
void
|
||||||
AudioRegionView::set_fx_line_colors ()
|
AudioRegionView::set_fx_line_colors ()
|
||||||
{
|
{
|
||||||
assert (_fx_line);
|
if (!_fx_line) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (_rdx_param != UINT32_MAX && _rfx_id != 0) {
|
if (_rdx_param != UINT32_MAX && _rfx_id != 0) {
|
||||||
_fx_line->set_line_color ("region automation line");
|
_fx_line->set_line_color ("region automation line");
|
||||||
|
|
Loading…
Reference in New Issue