diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-03-02 21:08:37 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-03-02 21:08:37 +0000 |
commit | 3e013e45b37d11008b869154e0d4a4d8ddd5a201 (patch) | |
tree | c2a2a6340407d53d2adbabe1f1ff003fb3e73567 /gtk2_ardour/editor_ops.cc | |
parent | 3a85e71031bc26d67d66db985da2159415f84fdb (diff) |
fix up start-in-source values from regions created as sections of another region (semantics changed as plists were introducted); remove some "optimizations" from Playlist::set_state() added to help with MementoCommand but that made undo not work correctly; make sure that Playlist::clear() notifies about regions being removed
git-svn-id: svn://localhost/ardour2/branches/3.0@6722 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 6eaf1fb41a..b2174d1933 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -2666,7 +2666,7 @@ Editor::region_from_selection () PropertyList plist; - plist.add (ARDOUR::Properties::start, internal_start); + plist.add (ARDOUR::Properties::start, current->start() + internal_start); plist.add (ARDOUR::Properties::length, selection_cnt); plist.add (ARDOUR::Properties::name, new_name); plist.add (ARDOUR::Properties::layer, 0); @@ -2706,7 +2706,7 @@ Editor::create_region_from_selection (vector<boost::shared_ptr<Region> >& new_re PropertyList plist; - plist.add (ARDOUR::Properties::start, internal_start); + plist.add (ARDOUR::Properties::start, current->start() + internal_start); plist.add (ARDOUR::Properties::length, end - start + 1); plist.add (ARDOUR::Properties::name, new_name); |