diff options
Diffstat (limited to 'src/progs/ingenuity/NodeModule.cpp')
-rw-r--r-- | src/progs/ingenuity/NodeModule.cpp | 4 |
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(); } |