From cc8264c1368e6a3891022ddca7dcf2c79df5cf2d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 19 Aug 2008 00:13:04 +0000 Subject: Write lv2:index for patch ports. git-svn-id: http://svn.drobilla.net/lad/ingen@1438 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/PatchImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libs/engine') diff --git a/src/libs/engine/PatchImpl.cpp b/src/libs/engine/PatchImpl.cpp index 97f9dde3..9f0ae701 100644 --- a/src/libs/engine/PatchImpl.cpp +++ b/src/libs/engine/PatchImpl.cpp @@ -348,7 +348,7 @@ PatchImpl::create_port(const string& name, DataType type, size_t buffer_size, bo assert( !(type == DataType::UNKNOWN) ); - return new DuplexPort(this, name, 0, _polyphony, type, Atom(), buffer_size, is_output); + return new DuplexPort(this, name, num_ports(), _polyphony, type, Atom(), buffer_size, is_output); } -- cgit v1.2.1