mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
various safety checks for the result of dynamic_cast-ing a TimeAxisView to RouteTimeAxisView
Now that we have VCATimeAxisView, this needed to be done, but it also potentially applied with automation
This commit is contained in:
parent
3835b782b3
commit
6baac7d46f
6 changed files with 109 additions and 62 deletions
|
|
@ -2096,7 +2096,7 @@ Editor::visible_order_range (int* low, int* high) const
|
|||
|
||||
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (*i);
|
||||
|
||||
if (!rtv->hidden()) {
|
||||
if (rtv && !rtv->hidden()) {
|
||||
|
||||
if (*high < rtv->order()) {
|
||||
*high = rtv->order ();
|
||||
|
|
@ -2309,7 +2309,7 @@ Editor::mouse_brush_insert_region (RegionView* rv, framepos_t pos)
|
|||
|
||||
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*>(&rv->get_time_axis_view());
|
||||
|
||||
if (rtv == 0 || !rtv->is_track()) {
|
||||
if (!rtv || !rtv->is_track()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue