diff options
Diffstat (limited to 'libs/ardour/location.cc')
-rw-r--r-- | libs/ardour/location.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index 5b5f733138..ca88a2851b 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -834,3 +834,14 @@ Locations::num_range_markers () const } return cnt; } + +Location * +Locations::get_location_by_id(PBD::ID id) +{ + LocationList::iterator it; + for (it = locations.begin(); it != locations.end(); it++) + if (id == (*it)->id()) + return *it; + + return 0; +} |