fix (or mostly fix) ctrl-drag (copy drag) for regions
git-svn-id: svn://localhost/ardour2/branches/3.0@6723 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
3e013e45b3
commit
fba09a3d19
@ -1179,11 +1179,13 @@ RegionMotionDrag::copy_regions (GdkEvent* event)
|
||||
|
||||
const boost::shared_ptr<const Region> original = rv->region();
|
||||
boost::shared_ptr<Region> region_copy = RegionFactory::create (original);
|
||||
region_copy->set_position (original->position(), this);
|
||||
|
||||
RegionView* nrv;
|
||||
if (arv) {
|
||||
boost::shared_ptr<AudioRegion> audioregion_copy
|
||||
= boost::dynamic_pointer_cast<AudioRegion>(region_copy);
|
||||
|
||||
nrv = new AudioRegionView (*arv, audioregion_copy);
|
||||
} else if (mrv) {
|
||||
boost::shared_ptr<MidiRegion> midiregion_copy
|
||||
|
Loading…
Reference in New Issue
Block a user