From cd0bc4625bab110e8e4b780c5b80c87662d35bab Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 17 Aug 2008 19:42:47 +0000 Subject: Fix copy/paste. git-svn-id: http://svn.drobilla.net/lad/ingen@1423 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/gui/PatchCanvas.cpp | 2 +- src/libs/shared/Builder.cpp | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/libs/gui/PatchCanvas.cpp b/src/libs/gui/PatchCanvas.cpp index f3aef740..e2511a4b 100644 --- a/src/libs/gui/PatchCanvas.cpp +++ b/src/libs/gui/PatchCanvas.cpp @@ -542,7 +542,7 @@ void PatchCanvas::copy_selection() { Serialiser serialiser(*App::instance().world(), App::instance().store()); - serialiser.start_to_string(_patch->path(), ""); + serialiser.start_to_string(_patch->path(), "http://example.org/"); for (list >::iterator m = _selected_items.begin(); m != _selected_items.end(); ++m) { boost::shared_ptr module = boost::dynamic_pointer_cast(*m); diff --git a/src/libs/shared/Builder.cpp b/src/libs/shared/Builder.cpp index 062afc63..331178f1 100644 --- a/src/libs/shared/Builder.cpp +++ b/src/libs/shared/Builder.cpp @@ -38,8 +38,6 @@ Builder::Builder(CommonInterface& interface) void Builder::build(SharedPtr object) { - cout << "BUILDING: " << object->path() << endl; - SharedPtr patch = PtrCast(object); if (patch) { if (patch->path() != "/") @@ -71,16 +69,12 @@ void Builder::build_object(SharedPtr object) { for (GraphObject::Variables::const_iterator i = object->variables().begin(); - i != object->variables().end(); ++i) { - cout << "SETTING " << object->path() << " . " << i->first << endl; + i != object->variables().end(); ++i) _interface.set_variable(object->path() + "_copy", i->first, i->second); - } for (GraphObject::Properties::const_iterator i = object->properties().begin(); - i != object->properties().end(); ++i) { - cout << "SETTING " << object->path() << " . " << i->first << endl; + i != object->properties().end(); ++i) _interface.set_property(object->path() + "_copy", i->first, i->second); - } } -- cgit v1.2.1