summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-17 19:42:47 +0000
committerDavid Robillard <d@drobilla.net>2008-08-17 19:42:47 +0000
commitcd0bc4625bab110e8e4b780c5b80c87662d35bab (patch)
tree569f272cc67a5092aef2c2342e423533c34c4455 /src/libs
parent28c9eaa363ccd70e56c52aedfb6d3d86c13b8cfd (diff)
downloadingen-cd0bc4625bab110e8e4b780c5b80c87662d35bab.tar.gz
ingen-cd0bc4625bab110e8e4b780c5b80c87662d35bab.tar.bz2
ingen-cd0bc4625bab110e8e4b780c5b80c87662d35bab.zip
Fix copy/paste.
git-svn-id: http://svn.drobilla.net/lad/ingen@1423 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/gui/PatchCanvas.cpp2
-rw-r--r--src/libs/shared/Builder.cpp10
2 files changed, 3 insertions, 9 deletions
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<boost::shared_ptr<Item> >::iterator m = _selected_items.begin(); m != _selected_items.end(); ++m) {
boost::shared_ptr<NodeModule> module = boost::dynamic_pointer_cast<NodeModule>(*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<const GraphObject> object)
{
- cout << "BUILDING: " << object->path() << endl;
-
SharedPtr<const Patch> patch = PtrCast<const Patch>(object);
if (patch) {
if (patch->path() != "/")
@@ -71,16 +69,12 @@ void
Builder::build_object(SharedPtr<const GraphObject> 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);
- }
}