From e82efbc503f278cd9a84aafd6cb574fc4bfc0e04 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 4 Dec 2011 01:19:53 +0000 Subject: Move Port::_module down to C level (Port is now a stateless wrapper). Fix crash on edge deletion. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3785 a436a847-0d15-0410-975c-d299462d15a1 --- src/PatchageCanvas.cpp | 2 +- src/PatchagePort.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp index 25483a4..10a156a 100644 --- a/src/PatchageCanvas.cpp +++ b/src/PatchageCanvas.cpp @@ -79,7 +79,7 @@ PatchageCanvas::find_port(const PortID& id) PortIndex::iterator i = _port_index.find(id); if (i != _port_index.end()) { - assert(i->second->module()); + assert(i->second->get_module()); return i->second; } diff --git a/src/PatchagePort.hpp b/src/PatchagePort.hpp index e2e6679..d770002 100644 --- a/src/PatchagePort.hpp +++ b/src/PatchagePort.hpp @@ -50,7 +50,7 @@ public: /** Returns the full name of this port, as "modulename:portname" */ std::string full_name() const { - return std::string(_module->get_label()) + ":" + get_label(); + return std::string(get_module()->get_label()) + ":" + get_label(); } bool on_click(GdkEventButton* ev) { -- cgit v1.2.1