From 69b9029a052e9d9c0d66e4b2fe954f9a6e906a92 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 8 Jun 2011 00:27:29 +0000 Subject: 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 --- src/PatchageCanvas.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.1