summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/NodeModule.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-03-12 18:13:03 +0000
committerDavid Robillard <d@drobilla.net>2007-03-12 18:13:03 +0000
commitcd3dffb1d8838e813cfbf58d27e212db7f8eb0af (patch)
tree62ab746043feb0e70c3335c548c7fdc1d741a31c /src/progs/ingenuity/NodeModule.cpp
parent6d03649eb75291abf2900a062ed0b7dcdb5dca86 (diff)
downloadingen-cd3dffb1d8838e813cfbf58d27e212db7f8eb0af.tar.gz
ingen-cd3dffb1d8838e813cfbf58d27e212db7f8eb0af.tar.bz2
ingen-cd3dffb1d8838e813cfbf58d27e212db7f8eb0af.zip
Removed name-based interface for FlowCanvas (using the view as a model = evil), related performance improvements (especially for Machina).
Updates for FlowCanvas API changes. Machina SMF import performance improvements (temporarily disabled node labels). git-svn-id: http://svn.drobilla.net/lad/ingen@356 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/NodeModule.cpp')
-rw-r--r--src/progs/ingenuity/NodeModule.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/progs/ingenuity/NodeModule.cpp b/src/progs/ingenuity/NodeModule.cpp
index 971dfa6b..c927114d 100644
--- a/src/progs/ingenuity/NodeModule.cpp
+++ b/src/progs/ingenuity/NodeModule.cpp
@@ -90,7 +90,9 @@ NodeModule::create(boost::shared_ptr<PatchCanvas> canvas, SharedPtr<NodeModel> n
void
NodeModule::add_port(SharedPtr<PortModel> port, bool resize_to_fit)
{
- Module::add_port(boost::shared_ptr<Port>(new Port(shared_from_this(), port)));
+ Module::add_port(boost::shared_ptr<Port>(new Port(
+ PtrCast<NodeModule>(shared_from_this()), port)));
+
if (resize_to_fit)
resize();
}