diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-01-29 20:02:43 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-01-29 20:02:43 +0000 |
commit | 9e8082aad6645f67cb18ea608abb6a854fd268d0 (patch) | |
tree | 4b6c7cfe6e8171d26d4c33287bbb259ed252c8b8 /libs/ardour/audioregion.cc | |
parent | 433f2cfb437e189a5114338c70967815a6d9d02a (diff) |
small change to region creation for make-mono-regions; add untested short_path(); fix double-redraws when canvas zoom/position changes
git-svn-id: svn://localhost/ardour2/trunk@1396 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audioregion.cc')
-rw-r--r-- | libs/ardour/audioregion.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index 9f76b0f19e..bc66f0d6b0 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -1051,10 +1051,15 @@ AudioRegion::separate_by_channel (Session& session, vector<boost::shared_ptr<Aud new_name += ('0' + n + 1); } - /* create a copy with just one source */ + /* create a copy with just one source. prevent if from being thought of as "whole file" even if + it covers the entire source file(s). + */ + + Flag f = Flag (_flags & ~WholeFile); - boost::shared_ptr<Region> r = RegionFactory::create (srcs, _start, _length, new_name, _layer, _flags); + boost::shared_ptr<Region> r = RegionFactory::create (srcs, _start, _length, new_name, _layer, f); boost::shared_ptr<AudioRegion> ar = boost::dynamic_pointer_cast<AudioRegion> (r); + cerr << "new region name is " << ar->name() << endl; v.push_back (ar); |