summaryrefslogtreecommitdiff
path: root/libs/ardour/region.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r--libs/ardour/region.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc
index 585689a656..a0da02be2a 100644
--- a/libs/ardour/region.cc
+++ b/libs/ardour/region.cc
@@ -462,7 +462,7 @@ Region::set_length (framecnt_t len, void */*src*/)
_last_length = _length;
- _length = len;
+ set_length_internal (len);
_whole_file = false;
first_edit ();
maybe_uncopy ();
@@ -477,6 +477,12 @@ Region::set_length (framecnt_t len, void */*src*/)
}
void
+Region::set_length_internal (framecnt_t len)
+{
+ _length = len;
+}
+
+void
Region::maybe_uncopy ()
{
/* this does nothing but marked a semantic moment once upon a time */
@@ -925,7 +931,7 @@ Region::trim_to_internal (framepos_t position, framecnt_t length, void */*src*/)
if (!property_changes_suspended()) {
_last_length = _length;
}
- _length = length;
+ set_length_internal (length);
what_changed.add (Properties::length);
}
if (_position != position) {