From 3c44c326c2dfbc06bc30a9f2ffca5f4b50e31acd Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 31 Jul 2023 21:11:36 -0600 Subject: [PATCH] add an assert() to check a target in CoreSelection::get_stripables_for_op() --- libs/ardour/selection.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/ardour/selection.cc b/libs/ardour/selection.cc index 376f05588b..2dac79745d 100644 --- a/libs/ardour/selection.cc +++ b/libs/ardour/selection.cc @@ -623,6 +623,8 @@ CoreSelection::get_stripables_for_op (std::shared_ptr sl, std::sh void CoreSelection::get_stripables_for_op (StripableList& sl, std::shared_ptr target, bool (RouteGroup::*group_predicate)() const) const { + assert (target); + std::shared_ptr r (std::dynamic_pointer_cast (target)); if (_stripables.empty()) { @@ -650,6 +652,7 @@ CoreSelection::get_stripables_for_op (StripableList& sl, std::shared_ptris_selected()) { + /* Use full selection */ StripableAutomationControls sc;