various fixes for moving markers, fixes a crash reported by tim blechmann and also likely #5232 and #5241

git-svn-id: svn://localhost/ardour2/branches/3.0@13754 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2013-01-02 23:54:06 +00:00
parent bcab772257
commit 67265c6d90
6 changed files with 135 additions and 36 deletions

View file

@ -1129,7 +1129,7 @@ void
Selection::set (Marker* m)
{
clear_time (); //enforce region/object exclusivity
clear_objects();
markers.clear ();
add (m);
}
@ -1137,8 +1137,6 @@ Selection::set (Marker* m)
void
Selection::toggle (Marker* m)
{
clear_time (); //enforce region/object exclusivity
MarkerSelection::iterator i;
if ((i = find (markers.begin(), markers.end(), m)) == markers.end()) {