summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-06-02 23:58:11 +0000
committerDavid Robillard <d@drobilla.net>2009-06-02 23:58:11 +0000
commit73856ffd42ba34d279ae16ec8058a2a22bf9a1d6 (patch)
tree95c80f73feeb6b24839f8d1cd7599ce586110538 /src/gui
parent49c05a2653e2f6c8abd8390a5e1f07361cd66f33 (diff)
downloadingen-73856ffd42ba34d279ae16ec8058a2a22bf9a1d6.tar.gz
ingen-73856ffd42ba34d279ae16ec8058a2a22bf9a1d6.tar.bz2
ingen-73856ffd42ba34d279ae16ec8058a2a22bf9a1d6.zip
Fix crash on copy/paste.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2063 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/PatchCanvas.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp
index 26eff17c..bbe3d2c8 100644
--- a/src/gui/PatchCanvas.cpp
+++ b/src/gui/PatchCanvas.cpp
@@ -650,7 +650,7 @@ PatchCanvas::paste()
Resource::Properties props;
props.insert(make_pair("rdf:type", Raul::Atom(Raul::Atom::URI, "ingen:Patch")));
props.insert(make_pair("ingen:polyphony", Raul::Atom(int32_t(_patch->poly()))));
- clipboard.put("/", props);
+ clipboard.put(Path(), props);
size_t first_slash;
while (to_create != "/" && to_create != ""
&& (first_slash = to_create.find("/")) != string::npos) {
@@ -672,7 +672,7 @@ PatchCanvas::paste()
}
ClashAvoider avoider(*App::instance().store().get(), clipboard, &clipboard);
- parser->parse_string(App::instance().world(), &avoider, str, "", data_path,
+ parser->parse_string(App::instance().world(), &avoider, str, Path().str(), data_path,
parent, symbol);
for (Store::iterator i = clipboard.begin(); i != clipboard.end(); ++i) {