summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-03-03 08:26:46 +0000
committerRobin Gareus <robin@gareus.org>2013-03-03 08:26:46 +0000
commitdbe00236ff5cfce8f539cf84a6d34b353542dfff (patch)
tree7bc2ad3a65ef653e906ccecc83059507dedacfbc /libs/ardour/session_state.cc
parent4203d59bbb2912a7f0c05fee87005fce2b8fc634 (diff)
fix region fade/env XML save - fixes #5353
In rev 12740 FadeIn/Out became stateful properties which are automatically saved when Region:state() calls Stateful::add_properties(). AudioRegion::state() called Region:state() AND Stateful::add_properties() which added a 2nd redundant copy to the XML. Finally AudioRegion::state() adds custom serialization for Fades. Furthermore this custom serialization also used names which did not match the Property name. git-svn-id: svn://localhost/ardour2/branches/3.0@14117 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r--libs/ardour/session_state.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index b6569ba00e..2dd2dfa7a0 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -1078,7 +1078,7 @@ Session::state (bool full_state)
boost::shared_ptr<Region> r = i->second;
/* only store regions not attached to playlists */
if (r->playlist() == 0) {
- child->add_child_nocopy (r->state ());
+ child->add_child_nocopy (r->get_state ());
}
}