summaryrefslogtreecommitdiffstats
path: root/src/progs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-12-02 22:47:23 +0000
committerDavid Robillard <d@drobilla.net>2006-12-02 22:47:23 +0000
commit26d0171f9bbc4af8036c704d3a4cb69a5d9fe942 (patch)
treebb70501477d56a59a3e85d5e4ddfa2bb469f82c8 /src/progs
parenta2759d9b8d6923d7aed1bebdf90fc493fab8b59f (diff)
downloadingen-26d0171f9bbc4af8036c704d3a4cb69a5d9fe942.tar.gz
ingen-26d0171f9bbc4af8036c704d3a4cb69a5d9fe942.tar.bz2
ingen-26d0171f9bbc4af8036c704d3a4cb69a5d9fe942.zip
More serialization work
git-svn-id: http://svn.drobilla.net/lad/ingen@206 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs')
-rw-r--r--src/progs/ingenuity/PatchCanvas.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/progs/ingenuity/PatchCanvas.cpp b/src/progs/ingenuity/PatchCanvas.cpp
index c8f49623..b1de8d60 100644
--- a/src/progs/ingenuity/PatchCanvas.cpp
+++ b/src/progs/ingenuity/PatchCanvas.cpp
@@ -316,8 +316,13 @@ PatchCanvas::copy_selection()
for (list<boost::shared_ptr<Module> >::iterator m = m_selected_modules.begin(); m != m_selected_modules.end(); ++m) {
boost::shared_ptr<NodeModule> module = boost::dynamic_pointer_cast<NodeModule>(*m);
- if (module)
+ if (module) {
serializer.serialize(module->node());
+ } else {
+ boost::shared_ptr<PatchPortModule> port_module = boost::dynamic_pointer_cast<PatchPortModule>(*m);
+ if (port_module)
+ serializer.serialize(port_module->port());
+ }
}
for (list<boost::shared_ptr<LibFlowCanvas::Connection> >::iterator c = m_selected_connections.begin();