summaryrefslogtreecommitdiff
path: root/libs/ardour/region_factory.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2018-11-15 09:29:55 -0600
committerBen Loftis <ben@harrisonconsoles.com>2019-08-01 12:11:31 -0500
commitbe7ebbb7ba1dae3ef688f34c9c03ad6372509922 (patch)
tree00d248289065385f46e305effa8bf15c1591fd4f /libs/ardour/region_factory.cc
parent71c2ed81603e6ed3231316df57161f4077c0a2c1 (diff)
(Source List) RegionFactory should return an empty region here.
Diffstat (limited to 'libs/ardour/region_factory.cc')
-rw-r--r--libs/ardour/region_factory.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/region_factory.cc b/libs/ardour/region_factory.cc
index e7d0528b96..ea46c6d471 100644
--- a/libs/ardour/region_factory.cc
+++ b/libs/ardour/region_factory.cc
@@ -126,7 +126,7 @@ RegionFactory::create (boost::shared_ptr<Region> region, const PropertyList& pli
ret->apply_changes (plist);
if (ret->session().config.get_glue_new_regions_to_bars_and_beats() && ret->position_lock_style() != MusicTime) {
- ret->set_position_lock_style (MusicTime);
+ ret->set_position_lock_style (MusicTime);
}
if (announce) {
@@ -639,6 +639,8 @@ RegionFactory::get_whole_region_for_source (boost::shared_ptr<Source> s)
return (i->second);
}
}
+
+ return boost::shared_ptr<Region>();
}
void