mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
add an assert() to check a target in CoreSelection::get_stripables_for_op()
This commit is contained in:
parent
200194b134
commit
3c44c326c2
1 changed files with 3 additions and 0 deletions
|
|
@ -623,6 +623,8 @@ CoreSelection::get_stripables_for_op (std::shared_ptr<StripableList> sl, std::sh
|
||||||
void
|
void
|
||||||
CoreSelection::get_stripables_for_op (StripableList& sl, std::shared_ptr<Stripable> target, bool (RouteGroup::*group_predicate)() const) const
|
CoreSelection::get_stripables_for_op (StripableList& sl, std::shared_ptr<Stripable> target, bool (RouteGroup::*group_predicate)() const) const
|
||||||
{
|
{
|
||||||
|
assert (target);
|
||||||
|
|
||||||
std::shared_ptr<Route> r (std::dynamic_pointer_cast<Route> (target));
|
std::shared_ptr<Route> r (std::dynamic_pointer_cast<Route> (target));
|
||||||
|
|
||||||
if (_stripables.empty()) {
|
if (_stripables.empty()) {
|
||||||
|
|
@ -650,6 +652,7 @@ CoreSelection::get_stripables_for_op (StripableList& sl, std::shared_ptr<Stripab
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (target->is_selected()) {
|
if (target->is_selected()) {
|
||||||
|
|
||||||
/* Use full selection */
|
/* Use full selection */
|
||||||
|
|
||||||
StripableAutomationControls sc;
|
StripableAutomationControls sc;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue