forward port 2.X changes up to and including rev 6909
[ardour.git] / libs / ardour / automatable.cc
index d6379eb38e55fb3f349e04606769a55084101290..5ae4e96b4e1f87436e53a0356ba9ed350e6d22b6 100644 (file)
@@ -22,6 +22,9 @@
 #include <inttypes.h>
 #include <cstdio>
 #include <errno.h>
+
+#include <glibmm/miscutils.h>
+
 #include "pbd/error.h"
 #include "pbd/enumwriter.h"
 
@@ -98,7 +101,7 @@ Automatable::load_automation (const string& path)
 {
        string fullpath;
 
-       if (path[0] == '/') { // legacy
+       if (Glib::path_is_absolute (path)) { // legacy
                fullpath = path;
        } else {
                fullpath = _a_session.automation_dir();