From f158d5a094288602b2663f114d39d287245ebe71 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 27 Nov 2011 06:33:35 +0000 Subject: Remove linear searching for connections. Remove redundant connection lists stored in Connectable. Add arrange and straight connections options to flowcanvas_bench. Add Connection::set_curved(). git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3652 a436a847-0d15-0410-975c-d299462d15a1 --- src/AlsaDriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/AlsaDriver.cpp') diff --git a/src/AlsaDriver.cpp b/src/AlsaDriver.cpp index 6374f0f..7ddb3d1 100644 --- a/src/AlsaDriver.cpp +++ b/src/AlsaDriver.cpp @@ -162,7 +162,7 @@ AlsaDriver::refresh() continue; PatchagePort* port2 = _app->canvas()->find_port(PortID(*addr2, true)); - if (port2 && !port->is_connected_to(port2)) { + if (port2 && !_app->canvas()->get_connection(port, port2)) { _app->canvas()->make_connection(port, port2, port->color() + 0x22222200); -- cgit v1.2.1