diff options
author | Hans Fugal <hans@fugal.net> | 2006-08-12 22:33:48 +0000 |
---|---|---|
committer | Hans Fugal <hans@fugal.net> | 2006-08-12 22:33:48 +0000 |
commit | e0d1b7cb4bfa2b988d5fe79309e0c4b36ccafc76 (patch) | |
tree | a7e8ef7cdbd3804aa66c18c70f49de4cd87c9f33 /libs | |
parent | 0cde6a54ed2f7ba5e3f5567f7ab52cf502fc13a6 (diff) |
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
Diffstat (limited to 'libs')
-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; +} |