diff options
author | Carl Hetherington <carl@carlh.net> | 2011-12-30 20:05:48 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-12-30 20:05:48 +0000 |
commit | dd53e7284ae1ef8ae594cb1a34db6500f944eab3 (patch) | |
tree | 88efed9f99a937cb065f8cbff81c441d8d3abcfb /libs/ardour/audioregion.cc | |
parent | 2c23ff8ceb51297aee7ae71d96e9b61dc9089343 (diff) |
Set up layering_index immediately on an explicit layer, so that undo
works properly. Stop the layer being a stateful property, as it is
always derived from layering_index, unambigiously, by relayer().
git-svn-id: svn://localhost/ardour2/branches/3.0@11120 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audioregion.cc')
-rw-r--r-- | libs/ardour/audioregion.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index 5ea7b5cbef..e8681cd32c 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -1071,7 +1071,7 @@ AudioRegion::separate_by_channel (Session& /*session*/, vector<boost::shared_ptr plist.add (Properties::start, _start.val()); plist.add (Properties::length, _length.val()); plist.add (Properties::name, new_name); - plist.add (Properties::layer, _layer.val()); + plist.add (Properties::layer, layer ()); v.push_back(RegionFactory::create (srcs, plist)); v.back()->set_whole_file (false); |