summaryrefslogtreecommitdiffstats
path: root/src/PatchageCanvas.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-08 00:27:29 +0000
committerDavid Robillard <d@drobilla.net>2011-06-08 00:27:29 +0000
commit69b9029a052e9d9c0d66e4b2fe954f9a6e906a92 (patch)
tree5547da3ea5e4e056225b869ce27fe91ef9c473cf /src/PatchageCanvas.cpp
parent07f12de4656cfa2c835637d5d3c657ac0f0ddaf2 (diff)
downloadpatchage-69b9029a052e9d9c0d66e4b2fe954f9a6e906a92.tar.gz
patchage-69b9029a052e9d9c0d66e4b2fe954f9a6e906a92.tar.bz2
patchage-69b9029a052e9d9c0d66e4b2fe954f9a6e906a92.zip
Fix double-add of items to canvas (fixing rect select, among other things)
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3370 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageCanvas.cpp')
-rw-r--r--src/PatchageCanvas.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp
index 279a852..69633c8 100644
--- a/src/PatchageCanvas.cpp
+++ b/src/PatchageCanvas.cpp
@@ -250,10 +250,9 @@ PatchageCanvas::add_module(const std::string& name, PatchageModule* module)
in_module = find_module(name, Output);
out_module = module;
}
+
if (in_module && out_module)
out_module->set_partner(in_module);
-
- add_item(module);
}
bool