summaryrefslogtreecommitdiffstats
path: root/src/engine/ConnectionImpl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-02-20 23:45:57 +0000
committerDavid Robillard <d@drobilla.net>2009-02-20 23:45:57 +0000
commitccc455f6fccc4a15bfe127388b7f548f82d84f55 (patch)
tree3028bf44b6b1b968e9f317710c85877b45adca09 /src/engine/ConnectionImpl.cpp
parent12e74d4a26eede059f016cc8a7806a57d5c9338e (diff)
downloadingen-ccc455f6fccc4a15bfe127388b7f548f82d84f55.tar.gz
ingen-ccc455f6fccc4a15bfe127388b7f548f82d84f55.tar.bz2
ingen-ccc455f6fccc4a15bfe127388b7f548f82d84f55.zip
Fix crash when connecting ports with mismatched poly where the destination port has fixed buffers (fix ticket #333).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1936 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/ConnectionImpl.cpp')
-rw-r--r--src/engine/ConnectionImpl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/ConnectionImpl.cpp b/src/engine/ConnectionImpl.cpp
index 60944d6c..b9d5e2af 100644
--- a/src/engine/ConnectionImpl.cpp
+++ b/src/engine/ConnectionImpl.cpp
@@ -71,10 +71,10 @@ ConnectionImpl::~ConnectionImpl()
void
ConnectionImpl::set_mode()
{
- if (must_copy())
- _mode = COPY;
- else if (must_mix())
+ if (must_mix())
_mode = MIX;
+ else if (must_copy())
+ _mode = COPY;
else if (must_extend())
_mode = EXTEND;