diff options
author | David Robillard <d@drobilla.net> | 2011-12-04 01:19:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-04 01:19:53 +0000 |
commit | e82efbc503f278cd9a84aafd6cb574fc4bfc0e04 (patch) | |
tree | 447e2c39a1c6b80a4147fadeb7399f9a4976001b /src | |
parent | 74a3eb19f586e3548f59bb9ff9137703cdc45de8 (diff) | |
download | patchage-e82efbc503f278cd9a84aafd6cb574fc4bfc0e04.tar.gz patchage-e82efbc503f278cd9a84aafd6cb574fc4bfc0e04.tar.bz2 patchage-e82efbc503f278cd9a84aafd6cb574fc4bfc0e04.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/PatchageCanvas.cpp | 2 | ||||
-rw-r--r-- | src/PatchagePort.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
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) { |