summaryrefslogtreecommitdiff
path: root/libs/ardour/region_factory.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-05-27 18:08:03 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-05-27 18:08:03 +0000
commit20299f71e3fbd91939a5b8332213730733ffbf81 (patch)
treea2318a3d8a1ae50fdb8b1307376f71f82013ea79 /libs/ardour/region_factory.cc
parent06c7a5da6b1198afa00fdee5f705c15643d68db6 (diff)
don't add regions created with announce=false to the global region map. i hope this doesn't have too many side effects ...
git-svn-id: svn://localhost/ardour2/branches/3.0@12457 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/region_factory.cc')
-rw-r--r--libs/ardour/region_factory.cc15
1 files changed, 5 insertions, 10 deletions
diff --git a/libs/ardour/region_factory.cc b/libs/ardour/region_factory.cc
index 01860048f4..fa948844ab 100644
--- a/libs/ardour/region_factory.cc
+++ b/libs/ardour/region_factory.cc
@@ -75,11 +75,10 @@ RegionFactory::create (boost::shared_ptr<const Region> region, bool announce)
if (ret->session().config.get_glue_new_regions_to_bars_and_beats ()) {
ret->set_position_lock_style (MusicTime);
}
-
- map_add (ret);
/* pure copy constructor - no property list */
if (announce) {
+ map_add (ret);
CheckNewRegion (ret);
}
}
@@ -119,9 +118,8 @@ RegionFactory::create (boost::shared_ptr<Region> region, const PropertyList& pli
ret->set_position_lock_style (MusicTime);
}
- map_add (ret);
-
if (announce) {
+ map_add (ret);
CheckNewRegion (ret);
}
}
@@ -161,9 +159,8 @@ RegionFactory::create (boost::shared_ptr<Region> region, frameoffset_t offset, c
ret->set_position_lock_style (MusicTime);
}
- map_add (ret);
-
if (announce) {
+ map_add (ret);
CheckNewRegion (ret);
}
}
@@ -203,9 +200,8 @@ RegionFactory::create (boost::shared_ptr<Region> region, const SourceList& srcs,
ret->set_position_lock_style (MusicTime);
}
- map_add (ret);
-
if (announce) {
+ map_add (ret);
CheckNewRegion (ret);
}
}
@@ -248,9 +244,8 @@ RegionFactory::create (const SourceList& srcs, const PropertyList& plist, bool a
ret->set_position_lock_style (MusicTime);
}
- map_add (ret);
-
if (announce) {
+ map_add (ret);
CheckNewRegion (ret);
}
}