diff options
author | Carl Hetherington <carl@carlh.net> | 2011-10-20 00:05:31 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-10-20 00:05:31 +0000 |
commit | abedf1fae33bb1215d4e2f2c3b84e1ced80a6e9d (patch) | |
tree | 828c6814006549cdaffe3c6ff3b9dee54b6ae1dc /gtk2_ardour/editor_markers.cc | |
parent | 0bc8832e208154a0f172d34182ed6b0bc8bba52f (diff) |
Save marker selection state in instant.xml (#4203).
git-svn-id: svn://localhost/ardour2/branches/3.0@10245 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_markers.cc')
-rw-r--r-- | gtk2_ardour/editor_markers.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_markers.cc b/gtk2_ardour/editor_markers.cc index 4ccacecbbd..f66b7d02c6 100644 --- a/gtk2_ardour/editor_markers.cc +++ b/gtk2_ardour/editor_markers.cc @@ -1505,3 +1505,15 @@ Editor::remove_sorted_marker (Marker* m) i->second.remove (m); } } + +Marker * +Editor::find_marker_from_location_id (PBD::ID const & id, bool is_start) const +{ + for (LocationMarkerMap::const_iterator i = location_markers.begin(); i != location_markers.end(); ++i) { + if (i->first->id() == id) { + return is_start ? i->second->start : i->second->end; + } + } + + return 0; +} |