diff options
author | David Robillard <d@drobilla.net> | 2011-06-08 00:27:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-06-08 00:27:29 +0000 |
commit | 69b9029a052e9d9c0d66e4b2fe954f9a6e906a92 (patch) | |
tree | 5547da3ea5e4e056225b869ce27fe91ef9c473cf /src | |
parent | 07f12de4656cfa2c835637d5d3c657ac0f0ddaf2 (diff) | |
download | patchage-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')
-rw-r--r-- | src/PatchageCanvas.cpp | 3 |
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 |