From 949b4d40174bb653c4c31320502c68c66b5397ca Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 1 Jun 2024 07:56:37 -0600 Subject: [PATCH] fix reversed logic in test of Delivery::set_name() Note that the Delivery::set_name() method worked correctly, but the Route::set_name() method would return false incorrectly. This appears to have no consequences. --- libs/ardour/route.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 1ba0580111..5bd9b6991a 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -4756,7 +4756,7 @@ Route::set_name (const string& str) */ if (_main_outs) { - if (_main_outs->set_name (newname)) { + if (!_main_outs->set_name (newname)) { /* XXX returning false here is stupid because we already changed the route name. */