diff options
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 04f3f39380..50f03854fb 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -2668,11 +2668,11 @@ Route::shift (nframes64_t pos, nframes64_t frames) int Route::save_as_template (const string& path, const string& name) { - XMLNode& node (state (false)); - XMLTree tree; - - IO::set_name_in_state (*node.children().front(), name); - - tree.set_root (&node); - return tree.write (path.c_str()); + XMLNode& node (state (false)); + XMLTree tree; + + IO::set_name_in_state (*node.children().front(), name); + + tree.set_root (&node); + return tree.write (path.c_str()); } |