summaryrefslogtreecommitdiff
path: root/libs/ardour/region.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-01-14 01:30:38 +0000
committerDavid Robillard <d@drobilla.net>2008-01-14 01:30:38 +0000
commit5a1d3e851dc0659965e12f1bc7d1ff3bf7f7162a (patch)
tree81f6c88af7b4d11586a6f73452aad5862ef47d2f /libs/ardour/region.cc
parent794917fca7c516cbe287f5aa2ec7c1dbf058089a (diff)
Partially fix MIDI region trim and extend.
git-svn-id: svn://localhost/ardour2/trunk@2911 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r--libs/ardour/region.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc
index 0505985aea..6d92c0bc88 100644
--- a/libs/ardour/region.cc
+++ b/libs/ardour/region.cc
@@ -1310,7 +1310,7 @@ Region::source_equivalent (boost::shared_ptr<const Region> other) const
bool
Region::verify_length (nframes_t len)
{
- if (source() && source()->destructive()) {
+ if (source() && (source()->destructive() || source()->length_mutable())) {
return true;
}
@@ -1328,7 +1328,7 @@ Region::verify_length (nframes_t len)
bool
Region::verify_start_and_length (nframes_t new_start, nframes_t& new_length)
{
- if (source() && source()->destructive()) {
+ if (source() && (source()->destructive() || source()->length_mutable())) {
return true;
}
@@ -1346,7 +1346,7 @@ Region::verify_start_and_length (nframes_t new_start, nframes_t& new_length)
bool
Region::verify_start (nframes_t pos)
{
- if (source() && source()->destructive()) {
+ if (source() && (source()->destructive() || source()->length_mutable())) {
return true;
}
@@ -1361,7 +1361,7 @@ Region::verify_start (nframes_t pos)
bool
Region::verify_start_mutable (nframes_t& new_start)
{
- if (source() && source()->destructive()) {
+ if (source() && (source()->destructive() || source()->length_mutable())) {
return true;
}