diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 6efc03c0aa..52363e9a4e 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -4810,9 +4810,8 @@ Route::has_io_processor_named (const string& name) ProcessorList::iterator i; for (i = _processors.begin(); i != _processors.end(); ++i) { - if (boost::dynamic_pointer_cast (*i) || - boost::dynamic_pointer_cast (*i)) { - if ((*i)->name() == name) { + if (boost::dynamic_pointer_cast (*i)) { + if (0 == PBD::natcmp ((*i)->name().c_str(), name.c_str())) { return true; } }