Anywhere that deletes regions needs to use a rdiff() on the playlist
authorCarl Hetherington <carl@carlh.net>
Fri, 30 Dec 2011 23:41:17 +0000 (23:41 +0000)
committerCarl Hetherington <carl@carlh.net>
Fri, 30 Dec 2011 23:41:17 +0000 (23:41 +0000)
commitb93254f27550ddffbc9d6c0f043e4e24cfe536c2
treecb125b9640e4985f3d1a6b56c16bb44d213a9d75
parent0be530821c5afb2bb7377efdb9eb886e350d0544
Anywhere that deletes regions needs to use a rdiff() on the playlist
for the undo history, so that changes to regions' layering_index
get stored in the undo record.  Make Playlist::update use add_region_internal
so that undone regions don't have their layering_index corrupted.
Setup layering indices on relayer() so that deletion of regions
causes an update.

git-svn-id: svn://localhost/ardour2/branches/3.0@11123 d708f5d6-7413-0410-9779-e7cbd77b26cf
gtk2_ardour/editor_ops.cc
libs/ardour/ardour/playlist.h
libs/ardour/playlist.cc