Make split region work across edit groups even if the region is not selected when the split occurs.
git-svn-id: svn://localhost/ardour2/trunk@2525 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
c8a4f8002b
commit
44dde5e7f4
@ -85,7 +85,14 @@ Editor::kbd_do_split (GdkEvent* ev)
|
||||
split_regions_at (where, selection->regions);
|
||||
} else {
|
||||
RegionSelection s;
|
||||
s.add (entered_regionview);
|
||||
|
||||
/* add equivalent regions to the selection that we'll split */
|
||||
vector<RegionView*> eq;
|
||||
get_equivalent_regions (entered_regionview, eq);
|
||||
for (vector<RegionView*>::iterator i = eq.begin(); i != eq.end(); ++i) {
|
||||
s.add (*i);
|
||||
}
|
||||
|
||||
split_regions_at (where, s);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user