From e0d1b7cb4bfa2b988d5fe79309e0c4b36ccafc76 Mon Sep 17 00:00:00 2001 From: Hans Fugal Date: Sat, 12 Aug 2006 22:33:48 +0000 Subject: [PATCH] r338@gandalf: fugalh | 2006-08-12 16:30:19 -0600 Oops, forgot one git-svn-id: svn://localhost/ardour2/branches/undo@813 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/location.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; +}