diff options
Diffstat (limited to 'src/JackDriver.cpp')
-rw-r--r-- | src/JackDriver.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp index 420d3fa..5b2d180 100644 --- a/src/JackDriver.cpp +++ b/src/JackDriver.cpp @@ -214,10 +214,7 @@ JackDriver::create_port(boost::shared_ptr<PatchageModule> parent, jack_port_t* p _app->state_manager()->get_port_color(port_type))); if (id.type != PortID::NULL_PORT_ID) { - boost::shared_ptr<PatchageCanvas> canvas - = boost::dynamic_pointer_cast<PatchageCanvas>(parent->canvas().lock()); - if (canvas) - canvas->index_port(id, ret); + dynamic_cast<PatchageCanvas*>(parent->canvas())->index_port(id, ret); } return ret; |