summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-17 21:43:27 +0000
committerDavid Robillard <d@drobilla.net>2011-02-17 21:43:27 +0000
commitd339144f61105e126f34ac61eb79a8ac319c3726 (patch)
treeb108696bb25a2b921cb3e0a0d903144358a886ce /src
parent8ecf0ff34b126f56dd06d6febf7046c0e98fb87e (diff)
downloadingen-d339144f61105e126f34ac61eb79a8ac319c3726.tar.gz
ingen-d339144f61105e126f34ac61eb79a8ac319c3726.tar.bz2
ingen-d339144f61105e126f34ac61eb79a8ac319c3726.zip
Remember document patches were loaded from (fix ticket #603).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2986 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/serialisation/Parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialisation/Parser.cpp b/src/serialisation/Parser.cpp
index 4ccb4525..b69900b5 100644
--- a/src/serialisation/Parser.cpp
+++ b/src/serialisation/Parser.cpp
@@ -310,7 +310,7 @@ Parser::parse(Ingen::Shared::World* world,
subject = nil;
}
- std::string path_str;
+ std::string path_str = data_path ? data_path->chop_scheme() : "/";
boost::optional<Path> ret;
boost::optional<Path> root_path;
@@ -376,7 +376,7 @@ Parser::parse(Ingen::Shared::World* world,
}
- return root_path;
+ return boost::optional<Path>(Path(path_str));
}
boost::optional<Path>