diff options
author | Carl Hetherington <carl@carlh.net> | 2010-08-09 16:40:31 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-08-09 16:40:31 +0000 |
commit | 5b520324ceab2559723b4ef5127301fa61ff4846 (patch) | |
tree | 13850a356fabdcbd55ca527fc5faf2fda63cb209 /gtk2_ardour/location_ui.cc | |
parent | aa9fd3334976ceae7e164c3fabc87e55fc921dff (diff) |
Allow markers to be glued to bar/beat time. Fixes #1815.
git-svn-id: svn://localhost/ardour2/branches/3.0@7573 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/location_ui.cc')
-rw-r--r-- | gtk2_ardour/location_ui.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/location_ui.cc b/gtk2_ardour/location_ui.cc index fda29be193..fb30450a54 100644 --- a/gtk2_ardour/location_ui.cc +++ b/gtk2_ardour/location_ui.cc @@ -829,7 +829,7 @@ LocationUI::add_new_location() if (_session) { nframes_t where = _session->audible_frame(); _session->locations()->next_available_name(markername,"mark"); - Location *location = new Location (where, where, markername, Location::IsMark); + Location *location = new Location (*_session, where, where, markername, Location::IsMark); if (Config->get_name_new_markers()) { newest_location = location; } @@ -851,7 +851,7 @@ LocationUI::add_new_range() if (_session) { nframes_t where = _session->audible_frame(); _session->locations()->next_available_name(rangename,"unnamed"); - Location *location = new Location (where, where, rangename, Location::IsRangeMarker); + Location *location = new Location (*_session, where, where, rangename, Location::IsRangeMarker); _session->begin_reversible_command (_("add range marker")); XMLNode &before = _session->locations()->get_state(); _session->locations()->add (location, true); |