diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-05-22 16:38:36 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-05-22 16:38:36 +0000 |
commit | eb8fa216c237d34f047d3fe0bf63198ad5a95da8 (patch) | |
tree | 748577233e9de9a36072a2fcc3df33cafef50ec3 /libs/ardour/panner.cc | |
parent | 93664a2adac106c3a3bd0346816ef410f234fea4 (diff) |
more path-building fixes from colinf
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3388 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/panner.cc')
-rw-r--r-- | libs/ardour/panner.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libs/ardour/panner.cc b/libs/ardour/panner.cc index eb9547edff..db802b0921 100644 --- a/libs/ardour/panner.cc +++ b/libs/ardour/panner.cc @@ -1155,8 +1155,7 @@ Panner::set_state (const XMLNode& node) /* automation path is relative */ - automation_path = _session.automation_dir(); - automation_path += prop->value (); + automation_path = Glib::build_filename(_session.automation_dir(), prop->value ()); } return 0; @@ -1324,11 +1323,8 @@ Panner::set_position (float xpos, float ypos, float zpos, StreamPanner& orig) void Panner::set_name (string str) { - automation_path = _session.automation_dir(); - automation_path += _session.snap_name(); - automation_path += "-pan-"; - automation_path += legalize_for_path (str); - automation_path += ".automation"; + automation_path = Glib::build_filename(_session.automation_dir(), + _session.snap_name() + "-pan-" + legalize_for_path (str) + ".automation"); } int |