diff options
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r-- | libs/ardour/region.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index d49ed933c9..5aeecca0e2 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -216,6 +216,24 @@ Region::first_edit () } } +bool +Region::at_natural_position () const +{ + if (!_playlist) { + return false; + } + + boost::shared_ptr<Region> whole_file_region = get_parent(); + + if (whole_file_region) { + if (_position == whole_file_region->position() + _start) { + return true; + } + } + + return false; +} + void Region::move_to_natural_position (void *src) { |